Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube video not downloading but is able to be watched. #9353

Closed
11 tasks done
RCcola1987 opened this issue Mar 3, 2024 · 12 comments
Closed
11 tasks done

Youtube video not downloading but is able to be watched. #9353

RCcola1987 opened this issue Mar 3, 2024 · 12 comments
Labels
duplicate This issue or pull request already exists site-bug Issue with a specific website

Comments

@RCcola1987
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

USA

Provide a description that is worded well enough to be understood

When downloading the complete channel or some single videos from a creator yt-dlp errors out with "WARNING: [youtube] Skipping player response from ios client (got player response for video "M5t4UHllkUM" instead of "8swaQwN712g")" and downloads "[download] Destination: Video Not Available [8swaQwN712g].mhtml". If you go to the video in a web browser the video is available and able to be played. Also when --list-formats is used the following is outputted "
ID EXT RESOLUTION FPS │ PROTO │ VCODEC MORE INFO
────────────────────────────────────────────────────
sb2 mhtml 48x27 1 │ mhtml │ images storyboard
sb1 mhtml 72x45 1 │ mhtml │ images storyboard
sb0 mhtml 144x90 1 │ mhtml │ images storyboard"

the channel in question is https://www.youtube.com/@Daggerwin/videos
over 2k of his videos are having this issue. only about 1100 can be downloaded.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

yt-dlp -vU "https://www.youtube.com/watch?v=8swaQwN712g"
[debug] Command-line config: ['-vU', 'https://www.youtube.com/watch?v=8swaQwN712g']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (pip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-88-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2020.06.20, mutagen-1.46.0, requests-2.31.0, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2023.12.30 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
[youtube] Extracting URL: https://www.youtube.com/watch?v=8swaQwN712g
[youtube] 8swaQwN712g: Downloading webpage
[youtube] 8swaQwN712g: Downloading ios player API JSON
WARNING: [youtube] Skipping player response from ios client (got player response for video "M5t4UHllkUM" instead of "8swaQwN712g"); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[youtube] 8swaQwN712g: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] 8swaQwN712g: Downloading android player API JSON
WARNING: [youtube] Skipping player response from android client (got player response for video "M5t4UHllkUM" instead of "8swaQwN712g"); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: [youtube] Skipping player response from web client (got player response for video "M5t4UHllkUM" instead of "8swaQwN712g"); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: Only images are available for download. use --list-formats to see them
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 8swaQwN712g: Downloading 1 format(s): sb0
[debug] Invoking mhtml downloader on "https://i.ytimg.com/sb/M5t4UHllkUM/storyboard3_L2/M$M.jpg?sqp=-oaymwENSDfyq4qpAwVwAcABBqLzl_8DBgi867OjBg==&sigh=rs$AOn4CLD6zz6wUMPtwBuO9zjkyt-TR6iF_g"
[download] Video Not Available [8swaQwN712g].mhtml has already been downloaded
[download] 100% of   20.07KiB
@RCcola1987 RCcola1987 added site-bug Issue with a specific website triage Untriaged issue labels Mar 3, 2024
@bashonly
Copy link
Member

bashonly commented Mar 3, 2024

Are you running this on a server/VPS/cloud hosting by any chance?

@dirkf
Copy link
Contributor

dirkf commented Mar 3, 2024

Can't repro with yt-dlp 2023.06.22 or yt-dl master (domestic ISP).

@bashonly
Copy link
Member

bashonly commented Mar 3, 2024

This looks like #7143, which typically only affects data center IPs. It usually means Youtube has blocked your IP. OP, are you using a VPN?

over 2k of his videos are having this issue. only about 1100 can be downloaded.

When you say this, do you mean you already downloaded 1100 videos and then the issue manifested itself? That could mean Youtube blocked you after too many requests

@bashonly bashonly added duplicate This issue or pull request already exists incomplete Further information is needed and removed triage Untriaged issue labels Mar 3, 2024
@RCcola1987
Copy link
Author

RCcola1987 commented Mar 3, 2024

None of these. This is on my home internet connection. only certain videos are having this issue. I have tried with and without cookies. If it is a block wouldn't that block for ALL videos and not just some? Also no issue watching on same system in browser.

@bashonly
Copy link
Member

bashonly commented Mar 3, 2024

This could be instead related to #9316 which was fixed by 413d367

@RCcola1987 Run python3 -m pip install -U --pre yt-dlp to update to nightly, and try again.

Also no issue watching on same system in browser.

In private browsing tab too? (not logged in)

@bashonly bashonly added triage Untriaged issue and removed duplicate This issue or pull request already exists labels Mar 3, 2024
@RCcola1987
Copy link
Author

Ok so in a private window it says the video is not available. Is their a way to be logged in with ytdlp?

@RCcola1987
Copy link
Author

yt-dlp -vU "https://www.youtube.com/watch?v=8swaQwN712g"
[debug] Command-line config: ['-vU', 'https://www.youtube.com/watch?v=8swaQwN712g']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.03.02.232720 from yt-dlp/yt-dlp-nightly-builds [6ad11fe] (pip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-88-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2020.06.20, mutagen-1.46.0, requests-2.31.0, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1834 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.03.02.232720 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.03.02.232720 from yt-dlp/yt-dlp-nightly-builds)
[youtube] Extracting URL: https://www.youtube.com/watch?v=8swaQwN712g
[youtube] 8swaQwN712g: Downloading webpage
[youtube] 8swaQwN712g: Downloading ios player API JSON
[youtube] 8swaQwN712g: Downloading android player API JSON
WARNING: [youtube] Skipping player responses from ios/android/web clients (got player responses for video "M5t4UHllkUM" instead of "8swaQwN712g")
ERROR: [youtube] 8swaQwN712g: All player responses are invalid. Your IP is likely being blocked by Youtube
File "/home/ryan/.local/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 732, in extract
ie_result = self._real_extract(url)
File "/home/ryan/.local/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 4074, in _real_extract
webpage, master_ytcfg, player_responses, player_url = self._download_player_responses(url, smuggled_data, video_id, webpage_url)
File "/home/ryan/.local/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 4038, in _download_player_responses
player_responses, player_url = self._extract_player_responses(
File "/home/ryan/.local/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 3727, in _extract_player_responses
raise ExtractorError(

@bashonly
Copy link
Member

bashonly commented Mar 3, 2024

a way to be logged in with ytdlp?

--cookies-from-browser or --cookies (more info)

Also, see important notes/workarounds for youtube cookies:

@RCcola1987
Copy link
Author

But this still fails even with cookies

@bashonly
Copy link
Member

bashonly commented Mar 3, 2024

See the linked issue and make sure that the cookies are actually valid. Share log please

@RCcola1987
Copy link
Author

RCcola1987 commented Mar 3, 2024

Is their an ETA for the oauth2 plugin being added to yt-dlp? and yes it works ty. and how do i switch back to thew normal branch of yt-dlp with pip?

@bashonly
Copy link
Member

bashonly commented Mar 3, 2024

Is their an ETA for the oauth2 plugin being added to yt-dlp

afaik no

and how do i switch back to thew normal branch of yt-dlp with pip?

I wouldn't tbh. Stable release is 2+ months old at this point, and making all those requests with the no-longer-supported YT client versions may have contributed to your IP being semi-blocked in the first place

But if you must: python3 -m pip install yt-dlp==2023.12.30

Closing as duplicate of #7143

@bashonly bashonly closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2024
@bashonly bashonly added duplicate This issue or pull request already exists and removed incomplete Further information is needed triage Untriaged issue labels Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

3 participants