From 5a429485ad24ed4a23f6b860a1a15aad21a795a6 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 9 Aug 2021 01:07:46 +0800 Subject: [PATCH] Update personal scripts --- bin/bangs | 6 ++++-- bin/choose-emoji-menu | 3 ++- bin/convert-newpipe-db | 7 ++++--- bin/split-album | 4 ++-- 4 files changed, 12 insertions(+), 8 deletions(-) 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 }