aboutsummaryrefslogtreecommitdiff
path: root/.scripts/audio_dl.sh
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-10-12 13:58:26 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-10-12 13:58:26 +0530
commit4ea0a0520125ccd5a0002fad23968416f8add92d (patch)
treef1a168aa41e82b6b6c7367a4aff5e5239b0fc470 /.scripts/audio_dl.sh
parent46f99e717bc020c09e0068bc2c3cd29d3209d9ed (diff)
using yt-dlp instead of dl
Diffstat (limited to '.scripts/audio_dl.sh')
-rwxr-xr-x.scripts/audio_dl.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/audio_dl.sh b/.scripts/audio_dl.sh
index d757a95..bb41db6 100755
--- a/.scripts/audio_dl.sh
+++ b/.scripts/audio_dl.sh
@@ -5,7 +5,7 @@ LINES=$(cat $FILE)
counter=1
for line in $LINES; do
- dl "https://www.youtube.com/watch?v=$line" || echo "$line" >> "$FILE""_failed"
+ yt-dlp -x --audio-format mp3 "https://www.youtube.com/watch?v=$line" || echo "$line" >> "$FILE""_failed"
counter=$((counter+1))
tail -n "+$counter" "$FILE" > "$FILE""_remaining"
done