mov-cli-youtube
mov-cli-youtube copied to clipboard
[FEATURE] --cookies to play videos with a VPN
I have a VPN on and I get this error:
[youtube] Extracting URL: https://www.youtube.com/watch?v=ivGx54_X7YE
[youtube] ivGx54_X7YE: Downloading webpage
[youtube] ivGx54_X7YE: Downloading tv player API JSON
[youtube] ivGx54_X7YE: Downloading ios player API JSON
ERROR: [youtube] ivGx54_X7YE: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies
[CRITICAL] (mov_cli) - An error occurred inside a plugin. This is MOST LIKELY not a mov-cli error, make SURE mov-cli and your plugins are up to date. Also report this to the plugin, not mov-cli!
Error: ERROR: [youtube] ivGx54_X7YE: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies
[INFO] (mov_cli) - [ATNS] ❌ Error occurred while scraping with 'youtube.DEFAULT'! Trying the next scraper...
[INFO] (mov_cli) - Using 'youtube.pytube' scraper...
[INFO] (mov_cli) - Searching for 'blender studio'...
[CRITICAL] (mov_cli) - An error occurred inside a plugin. This is MOST LIKELY not a mov-cli error, make SURE mov-cli and your plugins are up to date. Also report this to the plugin, not mov-cli!
Error: mN0zPOpADL4 This request was detected as a bot. Use `use_po_token=True` or switch to WEB client to view. See more details at https://github.com/JuanBindez/pytubefix/pull/209
[INFO] (mov_cli) - [ATNS] ❌ Error occurred while searching with 'youtube.pytube'! Trying the next scraper...
tuxenthusiast@fedora:~$
YouTube does this thing now when you're on a VPN, not signed in and also if you didn't pass the "I'm not a robot" test with Google you can't stream content from YouTube.
@r3tr0ananas I think a temp solution is to add a scraper arg to toggle something like --cookies-from-browser and --cookies /path/to/cookies/file.txt: https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp