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

KeyError: 'k' #3643

Closed
mrcad opened this issue Aug 31, 2014 · 4 comments
Closed

KeyError: 'k' #3643

mrcad opened this issue Aug 31, 2014 · 4 comments

Comments

@mrcad
Copy link

@mrcad mrcad commented Aug 31, 2014

i was hoping you could help me out with this:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.tudou.com/programs/view/ajX3gyhL0pc/', '
-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.08.29
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[Tudou] ajX3gyhL0pc: Downloading webpage
Traceback (most recent call last):
File "main.py", line 18, in
File "youtube_dl__init__.pyo", line 911, in main
File "youtube_dl__init__.pyo", line 901, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 1063, in download
File "youtube_dl\YoutubeDL.pyo", line 521, in extract_info
File "youtube_dl\extractor\common.pyo", line 178, in extract
File "youtube_dl\extractor\tudou.pyo", line 67, in _real_extract
KeyError: 'k'

thanks!

@naglis
Copy link
Collaborator

@naglis naglis commented Aug 31, 2014

For this particular video the segments dict includes an additional key-value pair LgWt': [{'lg': 0, 'wt': 0}] which is then selected after sorting.

@mrcad
Copy link
Author

@mrcad mrcad commented Aug 31, 2014

thanks for the input!

@phihag phihag closed this in #3644 Aug 31, 2014
phihag added a commit that referenced this issue Aug 31, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Aug 31, 2014

Thank you for the report. This bug should has been fixed in youtube-dl 2014.09.01.1. Type youtube-dl -U to update.

@mrcad
Copy link
Author

@mrcad mrcad commented Aug 31, 2014

I updated to 2014.09.01.1 and it's fixed. thank you all for your help.

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.

3 participants
You can’t perform that action at this time.