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-dl fails on some videos with error: ValueError: dictionary update sequence element #0 has length 1; 2 is required #91

Closed
Elizafox opened this issue Mar 9, 2011 · 1 comment

Comments

@Elizafox
Copy link

Elizafox commented Mar 9, 2011

On some videos, such as http://www.youtube.com/watch?v=21UP0frYg-E, youtube-dl generates the following error:

[elizabeth@ein ~]$ youtube-dl http://www.youtube.com/watch?v=21UP0frYg-E
--- 8< snip >8 ---
[youtube] 21UP0frYg-E: Extracting video information
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 2985, in 
    retcode = fd.download(all_urls)
  File "/usr/bin/youtube-dl", line 604, in download
    ie.extract(url)
  File "/usr/bin/youtube-dl", line 844, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl", line 1083, in _real_extract
    url_map = dict(tuple(pair.split('|')) for pair in video_info['fmt_url_map'][0].split(','))
ValueError: dictionary update sequence element #0 has length 1; 2 is required

Having done some investigation into the issue, it appears video_info does not get returned with the fmt_url_map element on some videos.

@rg3
Copy link
Collaborator

rg3 commented Mar 9, 2011

Closing as it's a dupe of #86.

joedborg referenced this issue in joedborg/youtube-dl Nov 17, 2020
[pull] master from rg3:master
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants