Last active
September 16, 2021 02:59
-
-
Save dylanschmittle/d2db281f7c1caffc8a58698dd8f79514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DIR=$(mktemp -d) | |
cd "$DIR" | |
strings ~/.local/share/dino/dino.* | grep 'youtu' | sed 's/http/\nhttp/g' | grep ^http | sed 's/\(^http[^ <]*\)\(.*\)/\1/g' | sort | uniq > new-url | |
cp ~/Music/master master.old | |
cat master.old > merge | |
cat new-url >> merge | |
cat merge | sort | uniq > ~/Music/master | |
cd ~/Music | |
youtube-dl --proxy socks5://127.0.0.1:9009/ -i -a master --yes-playlist --no-overwrites --continue --write-info-json --prefer-free-formats --merge-output-format mkv --extract-audio |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment