From: Jakub Czajka Date: Sun, 27 Oct 2024 12:14:06 +0000 (+0100) Subject: Obtain a cookie before downloading if needed. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=68d74ccd5d825a52cea6b7d3114697994098dfd7;p=ydlpd.git 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 --- 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 "\ "