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 said: Unable to extract video data #26389

Closed
MrDragonBoi opened this issue Aug 20, 2020 · 3 comments
Closed

YouTube said: Unable to extract video data #26389

MrDragonBoi opened this issue Aug 20, 2020 · 3 comments

Comments

@MrDragonBoi
Copy link

@MrDragonBoi MrDragonBoi commented Aug 20, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.07.28
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

PASTE VERBOSE LOG HERE

Python version 3.8.5 - Windows 10 Home
youtube-dl version 2020.07.28

Description

WRITE DESCRIPTION HERE
Whenever I try to use my play command (this is a discord.py project), it only takes one word from a video. Otherwise, it would come up with the "YouTube said: Unable to extract Video Data" error.

This is my options:
YTDL_OPTIONS = { 'format': 'bestaudio', 'extractaudio': True, 'audioformat': 'mp3', 'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s', 'restrictfilenames': True, 'noplaylist': True, 'nocheckcertificate': True, 'ignoreerrors': True, 'logtostderr': True, 'quiet': True, 'no_warnings': True, 'default_search': 'ytsearch', 'source_address': '0.0.0.0' }

@ldexterldesign
Copy link

@ldexterldesign ldexterldesign commented Aug 28, 2020

Problematic for me:

ldexterldesign@Lewiss-MacBook-Pro imperial walker % youtube-dl --format "bestvideo[height=720]+bestaudio/best" --ignore-errors --output '%(channel)s - %(uploader)s - %(playlist)s - %(upload_date)s - %(release_date)s - %(title)s - %(format)s - %(format_note)s.%(ext)s' "https://www.youtube.com/watch?v=tLXYBXWUUxE" -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--format', 'bestvideo[height=720]+bestaudio/best', '--ignore-errors', '--output', '%(channel)s - %(uploader)s - %(playlist)s - %(upload_date)s - %(release_date)s - %(title)s - %(format)s - %(format_note)s.%(ext)s', 'https://www.youtube.com/watch?v=tLXYBXWUUxE', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.8.5 (CPython) - macOS-10.15.6-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] tLXYBXWUUxE: Downloading webpage
ERROR: tLXYBXWUUxE: YouTube said: Unable to extract video data
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1892, in _real_extract
    raise ExtractorError(
youtube_dl.utils.ExtractorError: tLXYBXWUUxE: YouTube said: Unable to extract video data

It's an age restricted video:

Sign in to confirm your age
This video may be inappropriate for some users.

... so exploring --cookies solutions now...

If anyone knows the fix here then please let me know!

Sincerely

@ldexterldesign
Copy link

@ldexterldesign ldexterldesign commented Aug 28, 2020

Yes, adding --cookie option solved my issue

Once logged in, I used this extension to grab my cookies from the YouTube page

Hope this helps

Sincerely

@MrDragonBoi
Copy link
Author

@MrDragonBoi MrDragonBoi commented Aug 28, 2020

I used a diffrent source, so this issue is (hopefully) fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.