2021-11-17 14:17:36 -05:00
|
|
|
#!/usr/bin/env sh
|
2021-11-29 12:59:03 -05:00
|
|
|
set -eou pipefail
|
2021-11-17 14:17:36 -05:00
|
|
|
|
|
|
|
# Old script to get json url for some reason? Don't know why I did this
|
|
|
|
# youtube-dl -j --flat-playlist -a - | \
|
|
|
|
# jq -r '.id' | \
|
|
|
|
# sed 's_^_https://youtu.be/_' | \
|
|
|
|
# wget-titles-from-urls >> titles.txt
|
|
|
|
|
|
|
|
test -f append.txt
|
|
|
|
if [[ $? -ne 0 ]]; then
|
|
|
|
echo No append.txt found! Cannot append
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ ! -s append.txt ]]; then
|
|
|
|
echo append.txt is empty
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
cat append.txt | wget-titles-from-urls >> titles.txt
|
|
|
|
cat append.txt | youtube-audio
|
|
|
|
> append.txt
|
2024-04-25 10:58:58 -04:00
|
|
|
|
|
|
|
standardize-music
|