diff options
author | Soispha <soispha@vhack.eu> | 2023-12-19 15:50:49 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-12-19 15:50:49 +0100 |
commit | 19ce222f3e8e5333005dccf1d2defd46a90aee19 (patch) | |
tree | ceccf4349c7db77d7aac61fae0e1101cc43a5898 | |
parent | chore(version): v1.19.1 (diff) | |
download | nixos-config-19ce222f3e8e5333005dccf1d2defd46a90aee19.tar.gz nixos-config-19ce222f3e8e5333005dccf1d2defd46a90aee19.zip |
feat(hm/pkgs/src/spodi): Rework command line arguments
-rwxr-xr-x | hm/soispha/pkgs/scripts/wrappers/spodi | 32 |
1 files changed, 21 insertions, 11 deletions
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" |