From 06696ca201682f63ea50da3ab41d992ed6b61816 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 25 Feb 2023 07:54:37 +0100 Subject: Feat(packages): Add my scripts --- home-manager/packages/scripts/wrappers/deprecated/tidal-dl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 home-manager/packages/scripts/wrappers/deprecated/tidal-dl (limited to 'home-manager/packages/scripts/wrappers/deprecated/tidal-dl') diff --git a/home-manager/packages/scripts/wrappers/deprecated/tidal-dl b/home-manager/packages/scripts/wrappers/deprecated/tidal-dl new file mode 100755 index 00000000..c709a63d --- /dev/null +++ b/home-manager/packages/scripts/wrappers/deprecated/tidal-dl @@ -0,0 +1,11 @@ +#! /bin/bash +tmp=$(mktemp) + +scrap > $tmp + +for ((i=0; i < $( cat $tmp | wc -l); i++)) +do + out=$(awk -v n=$i 'NR == n {print $0}' $tmp) + spotdl --output /home/dt/media/playlist/down --output-format mp3 --lyrics-provider genius --dt 16 --st 16 "${out}" +done + -- cgit 1.4.1