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.com - ERROR: Unable to extract kaltura reference id #8927

Closed
jeromeza opened this issue Mar 21, 2016 · 1 comment
Closed

Safaribooksonline.com - ERROR: Unable to extract kaltura reference id #8927

jeromeza opened this issue Mar 21, 2016 · 1 comment

Comments

@jeromeza
Copy link

@jeromeza jeromeza commented Mar 21, 2016

Hi,

It seems I can't download video's in a batch from their index page as before.

If I try and download from the below then it fails with the error as per below:
https://www.safaribooksonline.com/library/view/red-hat-certified/9780134429427/

I can however still download individual video's via their direct URL's though as per below:
https://www.safaribooksonline.com/library/view/red-hat-certified/9780134429427/part00.html

$ youtube-dl --version
2016.03.18

$ youtube-dl --verbose --username myuser --password mypass https://www.safaribooksonline.com/library/view/red-hat-certified/9780134429427/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--username', u'PRIVATE', u'--password', u'PRIVATE', u'https://www.safaribooksonline.com/library/view/red-hat-certified/9780134429427/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.03.18
[debug] Python version 2.7.10 - Darwin-15.3.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[safari:course] Downloading login form
[safari:course] Logging in as myuser
[safari:course] Login successful
[safari:course] 9780134429427: Downloading course JSON
[download] Downloading playlist: Red Hat Certified System Administrator (RHCSA) and Red Hat Certified Engineer (RHCE) Library
[safari:course] playlist Red Hat Certified System Administrator (RHCSA) and Red Hat Certified Engineer (RHCE) Library: Collected 420 video ids (downloading 420 of them)
[download] Downloading video 1 of 420
[safari] 9780134429427/part00: Downloading webpage
ERROR: Unable to extract kaltura reference id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 668, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 320, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/safari.py", line 115, in _real_extract
reference_id = self._search_regex(r'data-reference-id="([^"]+)"', webpage, 'kaltura reference id')
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 621, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract kaltura reference id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 21, 2016

This issue is already fixed and fix will be incorporated in the next version of youtube-dl.

@dstftw dstftw closed this Mar 21, 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
2 participants
You can’t perform that action at this time.