From 68d74ccd5d825a52cea6b7d3114697994098dfd7 Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Sun, 27 Oct 2024 13:14:06 +0100 Subject: [PATCH] Obtain a cookie before downloading if needed. yt-dlp now requires an OAuth cookie [1]. [1] https://github.com/yt-dlp/yt-dlp/wiki/Extractors#logging-in-with-oauth --- download.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/download.sh b/download.sh index 1822747..41c3b5f 100755 --- a/download.sh +++ b/download.sh @@ -40,7 +40,8 @@ echo " " echo "Downloading ${FULL_URL} as ${FORMAT}" -yt-dlp ${ARGS} --output /tmp/"${LINK_ID}${EXT}" "${FULL_URL}" +yt-dlp --username=oauth --password="" ${ARGS} --output /tmp/"${LINK_ID}${EXT}" \ + "${FULL_URL}" echo "\ " -- 2.39.5