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

Another brightcove.com KeyError: u'playerKey' #3571

Closed
nehrwert opened this issue Aug 23, 2014 · 3 comments
Closed

Another brightcove.com KeyError: u'playerKey' #3571

nehrwert opened this issue Aug 23, 2014 · 3 comments

Comments

@nehrwert
Copy link

@nehrwert nehrwert commented Aug 23, 2014

my youtube-dl version is 2014.08.23, the url comes from http://www.aljazeera.com/programmes/witness/2014/08/miners-shot-down-2014812850358636.html

youtube-dl --verbose http://c.brightcove.com/services/viewer/federated_f9?isVid=1&isUI=1&publisherID=665003303001&playerID=1638546175001&domain=embed&autoStart=true&videoId=3726411512001
[1] 23838
[2] 23839
[3] 23840
[4] 23841
[5] 23842
[6] 23843
[2] Done isUI=1
[3] Done publisherID=665003303001
$ [debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://c.brightcove.com/services/viewer/federated_f9?isVid=1']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.08.23
[debug] Python version 2.7.3 - Linux-3.2.0-67-generic-x86_64-with-Ubuntu-12.04-precise
[debug] Proxy map: {}
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/bin/youtube-dl/main.py", line 18, in
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 894, in main

File "/usr/bin/youtube-dl/youtube_dl/init.py", line 884, in _real_main

File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1061, in download
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 520, in extract_info
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 170, in extract
File "/usr/bin/youtube-dl/youtube_dl/extractor/brightcove.py", line 192, in _real_extract
KeyError: u'playerKey'

@phihag
Copy link
Contributor

@phihag phihag commented Aug 24, 2014

Thank you for the report.

See the the strange [1] 23838 before youtube runs? That's the output from your shell, since ampersands are a shell character. To prevent your shell from interpreting the ampersands (and thereby depriving youtube-dl of the full URL), either escape them with a backslash or put the whole URL in quotes.

But that shouldn't be needed in the first place, just run youtube-dl on the original website:

youtube-dl http://www.aljazeera.com/programmes/witness/2014/08/miners-shot-down-2014812850358636.html

will just work in youtube-dl 2014.08.24. Type sudo youtube-dl -U to update.

Note that aljazeera seems to have restricted access to the video; I can download it just fine from Germany, but it fails from the US. The new youtube-dl will now relay the error message as well :)

@nehrwert
Copy link
Author

@nehrwert nehrwert commented Aug 24, 2014

thank you for the explanation and for your work to make the link work!

@Fil
Copy link

@Fil Fil commented Dec 1, 2014

I had no luck with this nor with http://www.aljazeera.com/programmes/the-slum/2014/08/deliverance-201482883754237240.html (youtube-dl version 2014.12.01)

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