-cookies-from-browser $BROWSER

This commit is contained in:
fred 2022-12-10 21:57:44 +01:00
parent 3742ad8841
commit f279c8bc6c
1 changed files with 2 additions and 0 deletions

View File

@ -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"