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

Safaribooksonline - ERROR: brightcove said: This player is not enabled for access without key. #7491

Closed
jeromeza opened this issue Nov 13, 2015 · 12 comments

Comments

@jeromeza
Copy link

@jeromeza jeromeza commented Nov 13, 2015

I'm seeing this error on the latest version I just grabbed.

Trying to grab off Safaribooksonline.com and I see:

ERROR: brightcove said: This player is not enabled for access without key.

Any ideas?

Running:
youtube-dl --version
2015.11.13

Thanks,

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 13, 2015

As explained in the bug reporting instructions post the url you have problems with and the full output you get when running youtube-dl --verbose THE_URL.

@jaimeMF jaimeMF closed this Nov 13, 2015
@jeromeza
Copy link
Author

@jeromeza jeromeza commented Nov 13, 2015

As requested:

youtube-dl --autonumber-size 3 -o "%(autonumber)s - %(title)s.%(ext)s" https://www.safaribooksonline.com/library/view/red-hat-certified/9780133929171/ --username MYUSER --password MYPASSWORD --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--autonumber-size', u'3', u'-o', u'%(autonumber)s - %(title)s.%(ext)s', u'https://www.safaribooksonline.com/library/view/red-hat-certified/9780133929171/', u'--username', u'PRIVATE', u'--password', u'PRIVATE', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.11.13
[debug] Python version 2.7.10 - Darwin-15.0.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[safari:course] Downloading login form
[safari:course] Logging in MYUSER
[safari:course] Login successful
[safari:course] 9780133929171: Downloading course JSON
[download] Downloading playlist: Red Hat Certified Engineer (RHCE) Complete Video Course (Video Training)
[safari:course] playlist Red Hat Certified Engineer (RHCE) Complete Video Course (Video Training): Collected 172 video ids (downloading 172 of them)
[download] Downloading video 1 of 172
[safari] part00: Downloading webpage
[Brightcove] 3845446708001: Downloading webpage
ERROR: brightcove said: This player is not enabled for access without key.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 661, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 290, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/brightcove.py", line 237, in _real_extract
videoPlayer[0], query_str, query, referer=referer)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/brightcove.py", line 261, in _get_video_info
'brightcove said: %s' % error_msg, expected=True)
ExtractorError: brightcove said: This player is not enabled for access without key.

NOTE: site requires subscription so i've edited out my details, but you should be able to get a 7 day free trial to test.

Thanks,

@jaimeMF jaimeMF reopened this Nov 13, 2015
@jeromeza
Copy link
Author

@jeromeza jeromeza commented Nov 25, 2015

Jeromes-Air:~ jerome$ youtube-dl --version
2015.11.24

Still the same thing. Anything I can do assist?

@addersuk
Copy link

@addersuk addersuk commented Nov 28, 2015

Looking into this issue it appears they have switched provider and are now using Kaltura instead of Brightcove, so when it tries to download via Brightcove the above error is returned.

@benklaasen
Copy link

@benklaasen benklaasen commented Jan 23, 2016

It's an odd one, because a valid BrightCove object is returned. I don't understand the code well enough to fix this, but if there's anything I can do to help, please shout. I'd love to see a fix for this.

@gabrielcnr
Copy link

@gabrielcnr gabrielcnr commented Mar 9, 2016

I am having the same problem and I got to the same conclusion as @addersuk. I tried to workaround the problem and make it use Kaltura extractor. But the full URL for the video is only available at the DOM after a bunch of execution of JavaScript and I couldn't make it work. Is anyone looking at this?

@benklaasen
Copy link

@benklaasen benklaasen commented Mar 10, 2016

Hi @remitamine - is your change checked in? I have an account, I'll test it now. Thank you very much for looking into this. More info to follow...

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Mar 10, 2016

no, i just read the js code and extract the method, i didn't work on the python code because most of the videos work only with account so it's not worth to add the python code to support only few free videos.

@benklaasen
Copy link

@benklaasen benklaasen commented Mar 10, 2016

Ah, I see - I agree. What's the next step, then?

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Mar 10, 2016

if you or another one that has access:

  • know how to code in python, than open a PR to fix the extraction.
  • can provide an account to test with.

or:

  • i can send the code that will work with free videos in a branch and others that has an account check if it work with videos accessible with account but i can't fix it if it's didn't work(i didn't start working on it yet).
@jeromeza
Copy link
Author

@jeromeza jeromeza commented Mar 11, 2016

Hi,

  • an provide an account to test with
  • They provide a free trial. If you sign up you get full access, so that
    should solve the account requirement.

Thanks for the feedback!

On 2016-03-10 19:15, remitamine wrote:

if you or another one that has access:

  • know how to code in python, than open a PR to fix the extraction.
  • can provide an account to test with. or:
  • i can send the code that will work with free videos in a branch
    and check if it work with videos accessible with account but i can't
    fix it if it's didn't work(i didn't start working on it yet).

Reply to this email directly or view it on GitHub [1].

Links:

[1]
#7491 (comment)

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Mar 11, 2016

the method i point at before should not work directly for payed videos as they use Kaltura session protected videos.
from the js code:

"isSessionRestricted":true

https://blog.kaltura.com/create-ks-protected-videos-with-free-preview/

They provide a free trial. If you sign up you get full access, so that should solve the account requirement.

adding support for the site in youtube-dl is not a reason to signup for trial with fake identity.

remitamine added a commit that referenced this issue Mar 12, 2016
[safari] extract free and preview videos(#7491)
@dstftw dstftw closed this in 73cbd70 Mar 12, 2016
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
6 participants
You can’t perform that action at this time.