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 crashed with KeyError in _real_extract(): 'player_swf_url' #278

Closed
dholbach opened this issue Jan 18, 2012 · 5 comments
Closed

youtube-dl crashed with KeyError in _real_extract(): 'player_swf_url' #278

dholbach opened this issue Jan 18, 2012 · 5 comments
Assignees
Labels

Comments

@dholbach
Copy link

@dholbach dholbach commented Jan 18, 2012

The new version of youtube-dl seems to be able to download from mixcloud:
+ Added support for Mixcloud.

Unfortunately it doesn't seem to work as intended.

Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 4521, in
main()
File "/usr/bin/youtube-dl", line 4512, in main
_real_main()
File "/usr/bin/youtube-dl", line 4496, in _real_main
retcode = fd.download(all_urls)
File "/usr/bin/youtube-dl", line 849, in download
ie.extract(url)
File "/usr/bin/youtube-dl", line 1107, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl", line 3722, in _real_extract
player_url = json_data['player_swf_url']
KeyError: 'player_swf_url'

More information available on https://bugs.launchpad.net/ubuntu/+source/youtube-dl/+bug/918126

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: youtube-dl 2012.01.05-2
ProcVersionSignature: Ubuntu 3.2.0-9.16-generic 3.2.1
Uname: Linux 3.2.0-9-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
CheckboxSubmission: 2f383a1679e8525d7196eb2518a1921f
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
Date: Wed Jan 18 12:05:59 2012
ExecutablePath: /usr/bin/youtube-dl
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110817)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: python /usr/bin/youtube-dl -t http://www.mixcloud.com/dholbach/cryptkeeper/
PythonArgs: ['/usr/bin/youtube-dl', '-t', 'http://www.mixcloud.com/dholbach/cryptkeeper/']
SourcePackage: youtube-dl
Title: youtube-dl crashed with KeyError in _real_extract(): 'player_swf_url'
UpgradeStatus: Upgraded to precise on 2012-01-12 (5 days ago)
UserGroups: adm admin audio cdrom dialout lpadmin plugdev sambashare

@ghost ghost assigned phihag Feb 26, 2012
@phihag
Copy link
Contributor

@phihag phihag commented Feb 26, 2012

Mixcloud seems to have completely revamped their API; we basically need a new extractor. See http://www.mixcloud.com/developers/documentation/ for documentation. I'll look into it, but that may take some time (~April). You are of course free to provide patches.

@ghost
Copy link

@ghost ghost commented Jan 14, 2013

Any news of a fix for this? I get this output for mixcloud

WARNING: the program functionality for this site has been marked as broken, and will probably not work. If you want to go on, use the -i option.
[mixcloud] Downloading json
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 17, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 494, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 478, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/FileDownloader.py", line 503, in download
File "/usr/local/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 92, in extract
File "/usr/local/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 2930, in _real_extract
KeyError: 'player_swf_url'

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 7, 2013

@grexe yes, please add an new issue, they are different sites, the issues are not related.

@grexe
Copy link

@grexe grexe commented Jul 7, 2013

ok moved, thanks for the very quick reaction, cheers!

@jaimeMF jaimeMF closed this in 19e1d35 Sep 14, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 14, 2013

Should be fixed now.

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
4 participants
You can’t perform that action at this time.