diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-08-31 21:20:40 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-08-31 21:20:40 +0530 |
commit | e5f1bbba2be64cff04cc0bf7d2224c8a50a1c6dc (patch) | |
tree | 0cbcdaa78a731542776ff113711d9dc6288eedb7 /.scripts/audio_dl.sh | |
parent | f7bce96b0b363161c0fbedc77c369ad81027a3d2 (diff) |
setting alacritty scaling to 1.5 so it looks similar on both monitors
Diffstat (limited to '.scripts/audio_dl.sh')
-rwxr-xr-x | .scripts/audio_dl.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.scripts/audio_dl.sh b/.scripts/audio_dl.sh new file mode 100755 index 0000000..8e6c9eb --- /dev/null +++ b/.scripts/audio_dl.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +FILE=$@ +LINES=$(cat $FILE) + +counter=1 +for line in $LINES; do + youtube-dl -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 +rm "$FILE""_remaining" |