diff --git a/bin/bangs b/bin/bangs index ccbe14f..053256b 100755 --- a/bin/bangs +++ b/bin/bangs @@ -9,6 +9,8 @@ # ``` # will open a search result page on Google and Arch Wiki +# TODO: +# - Make the config compatible to bangs database from Duckduckgo. proc usage() { cat <&2 printf '[%d/%d] %s\\n' $[index] $[chapter_len] \"$[output_data['chapters'][index - 1]['title']]\" && ffmpeg -loglevel quiet -nostdin -i '${audio_file}' -ss ${start} $['-to ' + end if index != chapter_len else ''] ${title_slug}/${filename}" + append :job_queue ">&2 printf '[%d/%d] %s\\n' $[index] $[chapter_len] \"$[output_data['chapters'][index - 1]['title']]\"; ffmpeg -loglevel quiet -nostdin -i '${audio_file}' -ss ${start} $['-to ' + end if index != chapter_len else ''] ${title_slug}/${filename}" } if (has_error) { exit 1 }