This commit is contained in:
iceyrazor 2025-08-01 00:39:22 -05:00
parent 43032288d9
commit d92ff749a0
1 changed files with 17 additions and 0 deletions

17
download.sh Executable file
View File

@ -0,0 +1,17 @@
playlist="$1"
[ "$playlist" == "" ] && printf "playlist must be defined\n" && exit 1
mkdir "$playlist"
cd "$playlist"
i=0
while [ $i -le 300 ]
do
item="$(sqlite3 ../youtube_stuffs.db "select id from ytlist where rowid=$i and category='$playlist'")"
printf "$i: $item\n"
if [ "$item" != "" ]; then
yt-dlp --cookies ~/cookies.txt "$item" 2>> ../err.txt
fi
((i++))
done