From f279c8bc6ce23f59f679f59b0d5f59f804fde873 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 10 Dec 2022 21:57:44 +0100 Subject: [PATCH] -cookies-from-browser $BROWSER --- ajouter_media.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ajouter_media.sh b/ajouter_media.sh index 5baef9ec..d1a6adce 100755 --- a/ajouter_media.sh +++ b/ajouter_media.sh @@ -206,6 +206,7 @@ mkdir -p ${YTEMP} echo "VIDEO $YTURL" /usr/local/bin/youtube-dl -f '[ext=mp4]+best[height<=480]+[filesize<300M]' \ +--cookies-from-browser $BROWSER \ --no-playlist --write-info-json \ --no-mtime -o "${YTEMP}/%(id)s&%(title)s.%(ext)s" $YTURL @@ -497,6 +498,7 @@ else # artist is the URL ot the song /usr/local/bin/youtube-dl \ +--cookies-from-browser $BROWSER \ --ignore-errors --no-mtime \ --embed-thumbnail --metadata-from-title "%(artist)s - %(title)s" --add-metadata \ --extract-audio --audio-format mp3 -o "${YTEMP}/%(id)s&%(title)s.%(ext)s" "$artist"