Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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 requiredHaving done some investigation into the issue, it appears video_info does not get returned with the fmt_url_map element on some videos.