Created
September 16, 2021 02:39
-
-
Save dylanschmittle/06f4a1080d25e8fdd20b8e6a6cfa6968 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 -a updated --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