Skip to content

Instantly share code, notes, and snippets.

@dylanschmittle
Created September 16, 2021 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanschmittle/06f4a1080d25e8fdd20b8e6a6cfa6968 to your computer and use it in GitHub Desktop.
Save dylanschmittle/06f4a1080d25e8fdd20b8e6a6cfa6968 to your computer and use it in GitHub Desktop.
#!/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