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

Verbose option causes crash on some videos #1159

Closed
ano-ano opened this issue Jul 31, 2013 · 6 comments
Closed

Verbose option causes crash on some videos #1159

ano-ano opened this issue Jul 31, 2013 · 6 comments

Comments

@ano-ano
Copy link

@ano-ano ano-ano commented Jul 31, 2013

It works fine without -v.

youtube-dl -v "http://www.youtube.com/watch?v=07FYdnEawAQ"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=07FYdnEawAQ']
[debug] youtube-dl version 2013.07.31
[debug] Python version 2.6.1 - Darwin-10.8.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] 07FYdnEawAQ: Downloading video webpage
[youtube] 07FYdnEawAQ: Downloading video info webpage
[youtube] Confirming age
[youtube] 07FYdnEawAQ: Extracting video information
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 121, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 18, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 639, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 623, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 573, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 96, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 615, in _real_extract
KeyError: 'ad3_module'
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 31, 2013

It's working fine for me, are you running with -v for some reason?

@ano-ano
Copy link
Author

@ano-ano ano-ano commented Aug 2, 2013

Is it working for you for this exact link? That's strange. Error is in these lines

player_version = self._search_regex(r'ad3-(.+?)\.swf',
    video_info['ad3_module'][0], 'flash player',
    fatal=False)

video_info is parsed from get_video_info, but in get_video_info for this exact age-restricted vevo video, I don't see "ad3_module" anywhere (https://www.youtube.com/get_video_info?el=embedded&asv=3&video_id=07FYdnEawAQ&hl=en&sts=1588&gl=US&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2F07FYdnEawAQ). So, KeyError is raised.

No big reason, I was just debugging my own app that works with Youtube.

@ano-ano ano-ano closed this Aug 2, 2013
@ano-ano
Copy link
Author

@ano-ano ano-ano commented Aug 2, 2013

Whoops, closed accidentally.

@ano-ano ano-ano reopened this Aug 2, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 2, 2013

Yes, it works with that exact link, if I open the link you've posted I can see ad3_module=https%3A%2F%2Fs.ytimg.com%2Fyts%2Fswfbin%2Fad3-vfllyRhcv.swf, that's strange, we can be permissive and don't crash if that happens
Could you post the content you get from that link?

@ano-ano
Copy link
Author

@ano-ano ano-ano commented Aug 2, 2013

Sure, here you go:
https://gist.github.com/ano-ano/572cc1c4f006c8796127
I replaced my IP.

@jaimeMF jaimeMF closed this in ed27d35 Aug 2, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 2, 2013

Quite strange, maybe the version of the player is not in ad3_module, thanks for the report.

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.