Upgraded youtube_download plugin
This commit is contained in:
@@ -15,22 +15,27 @@ function main() {
|
||||
cd "${_SPATH}"
|
||||
echo "Working Dir: " $(pwd)
|
||||
|
||||
rm "${_SPATH}/../../cookies.txt"
|
||||
# rm "${_SPATH}/../../cookies.txt"
|
||||
|
||||
# Note: Export cookies to file
|
||||
python "${_SPATH}/yt_dlp/__main__.py" \
|
||||
--cookies-from-browser firefox --cookies "${_SPATH}/../../cookies.txt"
|
||||
|
||||
# Note: Use cookies from browser directly
|
||||
# python "${_SPATH}/yt_dlp/__main__.py" \
|
||||
# --cookies-from-browser firefox --write-sub --embed-sub --sub-langs en \
|
||||
# -o "${_STARGET}/%(title)s.%(ext)s" "${LINK}"
|
||||
# --cookies-from-browser firefox --cookies "${_SPATH}/../../cookies.txt"
|
||||
|
||||
# Note: Download video
|
||||
python "${_SPATH}/yt_dlp/__main__.py" \
|
||||
-f "bestvideo[height<=1080][ext=mp4][vcodec^=av]+bestaudio[ext=m4a]/best[ext=mp4]/best" \
|
||||
--cookies "${_SPATH}/../../cookies.txt" --write-sub --embed-sub --sub-langs en \
|
||||
-o "${_STARGET}/%(title)s.%(ext)s" "${LINK}"
|
||||
--js-runtimes deno \
|
||||
--cookies-from-browser firefox \
|
||||
--concurrent-fragments 8 \
|
||||
--embed-metadata \
|
||||
--embed-thumbnail \
|
||||
--write-auto-subs \
|
||||
--sub-langs "en.*" \
|
||||
--embed-subs \
|
||||
--merge-output-format mp4 \
|
||||
--remux-video mp4 \
|
||||
-f "bv*[height<=1080]+ba/b[height<=1080]" \
|
||||
-o "${_STARGET}/%(title)s.%(ext)s" "${LINK}"
|
||||
"${LINK}"
|
||||
|
||||
|
||||
}
|
||||
main "$@";
|
||||
Reference in New Issue
Block a user