From 19ce222f3e8e5333005dccf1d2defd46a90aee19 Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 19 Dec 2023 15:50:49 +0100 Subject: feat(hm/pkgs/src/spodi): Rework command line arguments --- hm/soispha/pkgs/scripts/wrappers/spodi | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) (limited to 'hm') diff --git a/hm/soispha/pkgs/scripts/wrappers/spodi b/hm/soispha/pkgs/scripts/wrappers/spodi index d1676d51..bf71eaac 100755 --- a/hm/soispha/pkgs/scripts/wrappers/spodi +++ b/hm/soispha/pkgs/scripts/wrappers/spodi @@ -13,21 +13,31 @@ already_downloaded_files="$(mktmp)" fd . "$DOWN_DIR" --exclude spotdl.log > "$already_downloaded_files"; config="$(mktmp)" -cat << EO > "$config" ---log-level INFO ---cache-path /home/soispha/.local/share/spotdl/.spotipy +cat << EOF | clean > "$config" +# Main options --audio youtube youtube-music slider-kz soundcloud bandcamp piped ---lyrics genius musixmatch azlyrics +--lyrics synced genius musixmatch azlyrics + +# FFmpeg options --ffmpeg ffmpeg ---format mp3 ---output {artists}_-_{title} ---overwrite skip ---client-id 5f573c9620494bae87890c0f08a60293 ---client-secret 212476d9b0f3472eaa762d90b19b0ba8 --threads 16 ---print-errors +--bitrate auto + +# Spotify options +--cache-path /home/soispha/.local/share/spotdl/.spotipy + +# Output options --preload -EO +--format opus +--output {artists}_-_{title} +--print-errors +--save-errors "$DOWN_DIR/spotdl-errors.log" +--generate-lrc +--overwrite skip + +# Misc options +--log-level INFO +EOF if [ -z "$NO_CHECK" ] && [ "$(wc -l < "$already_downloaded_files" )" -ne 0 ];then die "something is already downloaded" -- cgit 1.4.1