-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
ExtractorError: YouTube said: Unable to extract video data #26152
Comments
I'm seeing the same issue with latest version. |
I can confirm that this is also happening with HW4IM87DAdg |
Both videos above worked for me - only after I fed it my YouTube cookies. I came here after noticing a similar problem with _Uelrsz_VfY (even though video is not age restricted and plays in private mode just fine). It seems like YT is requiring a session cookie to dl certain videos (maybe to do with country restrictions as this video got song matched). It doesn't help the user realize this since it's not an error 401. As more videos have this issue I think it would be a nice enhancement for YTDL to give the user some hand-holding as far as getting cookies.txt set up and automatically using it when needed instead of adding --cookies c:\path\to\youtube-dl\cookies.txt every time. |
Yeah, like a youtube-dl --first or youtube-dl --cookie-update that sort of walks you through it would be nice. |
Hey there! |
PR #26100 fixes the age-gate check, but it's not merged into upstream yet. You can apply the patch locally. |
I ask because I tried two approaches to provide cookies for a logged-in user and both didn't work (providing text file and --add-header option). |
Happens with yJj9q-67ivA too. |
Another example with this error: https://www.youtube.com/watch?v=oL276M79mYE . |
I am having the same issue as #26299. ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. I am using a current updated version of Windows 10. None of the videos are age restricted |
This only works sporadically for me, very often I still get the "Unable to extract video data" error. I'm not sure what triggers the error. |
Thank you will try that |
Well like I said it only works for me occasionally. Hopefully a more fundamental solution can be found for the "unable to extract video data" error. |
I don't know if it's helpful, but if you're not connected to an account on youtube, you can still see a restricted video by changing in the url "watch?v=" with "embed/". Unfortunately doing this with youtube-dl doesn't work. |
Is there an easy way for those without programming experience to apply the patch locally? And how do I create/find the cookies.txt file? |
If you're running it in Python, there's no programming necessary, just change this line in this file: https://github.com/ytdl-org/youtube-dl/pull/26100/files If you're running it from an .exe file (as recommended on Windows), I'm not sure what to recommend, I haven't looked into the compilation process myself |
I'm running it from the .exe in Windows 10. I have Python 3.7.4 but wouldn't know how to use it for this without step-by-step instructions. EDIT: nicolaasjan's solution below worked for me. |
A For Firefox: Then run youtube-dl like this: |
That worked! Thank you very much, nicolaasjan! |
No problem. I have sent you a mail with instructions to compile |
What's happening with youtube-dl team? No commits in a long time, and no fix for this obvious bug that has been reported many times? |
#26100 Fixed most of the videos for me but the one as shown below is still not working.
|
When launching youtube-dl with python3 (and fix #26100) , I get a little bit further:
Note: |
Same here with https://www.youtube.com/watch?v=za8PP4xLHdQ (Lovecraft Country: “Sundown” (Episode 1 - Full Episode) | HBO Max) from two different 64-bit Linux boxes. |
This video worked fine when following directions using cookie option in #26152 (comment) |
Hey @Xan-Kun , i did the same thing but every time I try to fetch URLs, the cookies.txt file gets override!! Is it expected behaviour? Also, I am running those commands in AWS hosted ubuntu machine. Please help. |
Hey @nicolaasjan , i did the same thing but every time I try to fetch URLs, the cookies.txt file gets override!! Is it expected behaviour? Also, I am running those commands in AWS hosted ubuntu machine. Please help. |
I read somewhere, that youtube-dl changes the expiration date of the cookies in it, so that it keeps working as intended. The expiration dates are in Unix Timestamp format, so |
I tested and confirmed it's being very heavily rewritten. |
@upex Hi there. Yes it does! I just checked and didn't realise it before, but when I start the download, the cookies file gets overwritten. |
Perhaps try to specify quality? That worked for me but I'm not
entirely sure if I ever actually tested it with no args. See if that
works for you.
…On Mon, Sep 14, 2020 at 7:29 AM Xan-Kun ***@***.***> wrote:
Hey @Xan-Kun <https://github.com/Xan-Kun> , i did the same thing but
every time I try to fetch URLs, the cookies.txt file gets override!! Is it
expected behaviour? Also, I am running those commands in AWS hosted ubuntu
machine. Please help.
@upex <https://github.com/upex> Hi there. Yes it does! I just checked and
didn't realise it before, but when I start the download, the cookies file
gets overwritten.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26152 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF5DB4HIQ3KRYJKCXNU5XKLSFX5BZANCNFSM4PLAN72A>
.
|
To me: removing YouTube-dl downloaded using FOR LINUX USERS ONLY!!! |
This works on MacOS for me. $ pip3 install youtube-dl Collecting youtube-dl |
Try installing it with snap instead of apt or apt-get
|
I get following error:
Can anyone help me to resolve it? |
Hi @SatyamGaba, Did you try running Explained: |
Checklist
Verbose log
youtube-dl -v P5NB1H5pCHk
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'P5NB1H5pCHk']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 2.7.16 (CPython) - Linux-4.19.0-9-amd64-x86_64-with-debian-10.4
[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] P5NB1H5pCHk: Downloading webpage
ERROR: P5NB1H5pCHk: YouTube said: Unable to extract video data
Traceback (most recent call last):
File "/home/theo/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
ie_result = ie.extract(url)
File "/home/theo/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "/home/theo/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1893, in _real_extract
'YouTube said: %s' % unavailable_message, expected=True, video_id=video_id)
ExtractorError: P5NB1H5pCHk: YouTube said: Unable to extract video data
youtube-dl -v 4wZPsFWfi3k
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'4wZPsFWfi3k']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 2.7.16 (CPython) - Linux-4.19.0-9-amd64-x86_64-with-debian-10.4
[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] 4wZPsFWfi3k: Downloading webpage
ERROR: 4wZPsFWfi3k: YouTube said: Unable to extract video data
Traceback (most recent call last):
File "/home/theo/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
ie_result = ie.extract(url)
File "/home/theo/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "/home/theo/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1893, in _real_extract
'YouTube said: %s' % unavailable_message, expected=True, video_id=video_id)
ExtractorError: 4wZPsFWfi3k: YouTube said: Unable to extract video data
Description
It seems that ytdl can't download restricted videos anymore (the ones behind a "sign in to confirm your age" wall).
The text was updated successfully, but these errors were encountered: