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

Closed
opened 2026-02-20 21:05:52 -05:00 by deekerman · 5 comments
Owner

Originally created by @dholbach on GitHub (Jan 18, 2012).

Originally assigned to: @phihag on GitHub.

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

Originally created by @dholbach on GitHub (Jan 18, 2012). Originally assigned to: @phihag on GitHub. 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 <module> 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
deekerman 2026-02-20 21:05:52 -05:00
  • closed this issue
  • added the
    broken-IE
    label
Author
Owner

@phihag commented on GitHub (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.

@phihag commented on GitHub (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.
Author
Owner

@ghost commented on GitHub (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'

@ghost commented on GitHub (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 <module> 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'
Author
Owner

@jaimeMF commented on GitHub (Jul 7, 2013):

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

@jaimeMF commented on GitHub (Jul 7, 2013): @grexe yes, please add an new issue, they are different sites, the issues are not related.
Author
Owner

@grexe commented on GitHub (Jul 7, 2013):

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

@grexe commented on GitHub (Jul 7, 2013): ok moved, thanks for the very quick reaction, cheers!
Author
Owner

@jaimeMF commented on GitHub (Sep 14, 2013):

Should be fixed now.

@jaimeMF commented on GitHub (Sep 14, 2013): Should be fixed now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#218
No description provided.