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

ValueError: dictionary update sequence element #0 has length 1; 2 is required #66

Closed
rifter opened this issue Jan 29, 2011 · 5 comments
Closed

Comments

@rifter
Copy link

@rifter rifter commented Jan 29, 2011

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
$

@rifter
Copy link
Author

@rifter rifter commented Jan 29, 2011

Hmm.
This is not happening for all videos anymore apparently. I had a good run (or I guess bad) where all of them were doing this, but now some videos are working. The one above and several other cnn videos are not working. so maybe it is something weird about cnn's channel.

@rg3
Copy link
Collaborator

@rg3 rg3 commented Jan 29, 2011

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:

$ youtube-dl -i -a tmp.txt
[youtube] Setting language
[youtube] spTHQU2Gkwc: Downloading video webpage
ERROR: unable to download video webpage: HTTP Error 404: Not Found
[youtube] Yp6hHXJRB2A: Downloading video webpage
ERROR: unable to download video webpage: HTTP Error 404: Not Found
[youtube] r_DHOdeuh7A: Downloading video webpage
ERROR: unable to download video webpage: HTTP Error 404: Not Found
[youtube] qKa-311uqgQ: Downloading video webpage
ERROR: unable to download video webpage: HTTP Error 404: Not Found
[youtube] oyxWLIJk-rU: Downloading video webpage
ERROR: unable to download video webpage: HTTP Error 404: Not Found
@rg3
Copy link
Collaborator

@rg3 rg3 commented Jan 30, 2011

Try the version released today. If no more reports are received, the issue will be closed.

@rg3
Copy link
Collaborator

@rg3 rg3 commented Feb 3, 2011

Closed due to inability to reproduce and lack of more reports. Will reopen when if more information is available.

This issue was closed.
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.