From 03d5ccc5cfa119eff27917e96da61ac1f6751a42 Mon Sep 17 00:00:00 2001 From: Eliezer Croitoru Date: Fri, 20 Sep 2024 00:39:47 +0300 Subject: [PATCH] Added Jim Henson's The Storyteller playlist --- .../PLQTMPtKpo-ck440FEBCqAnpE9BkuOX87W.txt | 9 +++++++++ scripts/allow-list-videos.sh | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 allowed-playlists/PLQTMPtKpo-ck440FEBCqAnpE9BkuOX87W.txt create mode 100755 scripts/allow-list-videos.sh 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