diff --git a/allowed-playlists/PLQTMPtKpo-ck440FEBCqAnpE9BkuOX87W.txt b/allowed-playlists/PLQTMPtKpo-ck440FEBCqAnpE9BkuOX87W.txt new file mode 100644 index 0000000..8af755e --- /dev/null +++ b/allowed-playlists/PLQTMPtKpo-ck440FEBCqAnpE9BkuOX87W.txt @@ -0,0 +1,9 @@ +gDCOoJSeEc4 +8Cwf_kfsbNM +WeZTllDf4J8 +InT421ckGXI +nYpVDgcrnAg +BY7Ao0lbUPw +8uG5wl77ksQ +OfSCMq8ouis +54ja-_UaFGU diff --git a/scripts/allow-list-videos.sh b/scripts/allow-list-videos.sh new file mode 100755 index 0000000..2f75138 --- /dev/null +++ b/scripts/allow-list-videos.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +LIST_ID="$1" + +echo "${LIST_ID}" |egrep "^([a-zA-Z0-9\_\-]+)$" >/dev/null +if [ "$?" -eq "0" ] +then + LIST_URL="https://www.youtube.com/playlist?list=${LIST_ID}" + yt-dlp --netrc --netrc-location /root/.netrc --verbose --flat-playlist --print id "${LIST_URL}" | tee "allowed-playlists/${LIST_ID}.txt" +else + echo "Missing a valid list ID" >&2 +fi