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.
ValueError: dictionary update sequence element #0 has length 1; 2 is required #66
Comments
|
Hmm. |
|
Here are some videos that are giving this behaviour now: http://www.youtube.com/watch?v=spTHQU2Gkwc http://www.youtube.com/watch?v=Yp6hHXJRB2A http://www.youtube.com/watch?v=r_DHOdeuh7A |
|
I am unable to reproduce the problem here. When I access any of those videos from my browser, I get "This video is not available in your country." and from youtube-dl I see the following:
|
|
Try the version released today. If no more reports are received, the issue will be closed. |
|
Closed due to inability to reproduce and lack of more reports. Will reopen when if more information is available. |
The infamous error has reared its ugly head yet again:
ValueError: dictionary update sequence element #0 has length 1; 2 is required
This will show for any new videos you try to download. command line
options and output are pasted at the bottom.
I know this has happened many times before, but I can't find the
previous times in the issue tracker.
I downloaded what I think is the most recent snapshot (it said that
the commit was 9 hours ago) and the problem persists.
As I recall last time this happened you fixed it pretty quickly and it
had something to do with what youtube returns to you at some point in
your program.
One of these days I will have to dig into how this all works so I can
be more help in these situations.
Again thank you for a great program that is the basis for so much more.
$ ./youtube-dl -i -n -c -o %(uploader)s-%(stitle)s-%(id)s.%(ext)s
http://www.youtube.com/watch?v=oyxWLIJk-rU
[youtube] Setting language
[youtube] Logging in
[youtube] Confirming age
[youtube] oyxWLIJk-rU: Downloading video webpage
[youtube] oyxWLIJk-rU: Downloading video info webpage
[youtube] oyxWLIJk-rU: Extracting video information
Traceback (most recent call last):
File "./youtube-dl", line 2462, in
retcode = fd.download(all_urls)
File "./youtube-dl", line 481, in download
ie.extract(url)
File "./youtube-dl", line 711, in extract
return self._real_extract(url)
File "./youtube-dl", line 951, 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
$