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

Brightcove JSON extraction failing #2283

Closed
vectorsigma opened this issue Feb 1, 2014 · 5 comments
Closed

Brightcove JSON extraction failing #2283

vectorsigma opened this issue Feb 1, 2014 · 5 comments

Comments

@vectorsigma
Copy link

@vectorsigma vectorsigma commented Feb 1, 2014

Tried to access the URL below, hosted at The Newyorker

Per advice from the binary, after I'd updated to 2014.01.30.2, the following stack trace was thrown:

$ youtube-dl --verbose "http://link.brightcove.com/services/player/bcpid2538399966001/?bctid=3062914423001&autoStart=false"
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://link.brightcove.com/services/player/bcpid2538399966001/?bctid=3062914423001&autoStart=false']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.01.30.2
[debug] Python version 2.7.5 - Linux-3.12.8-200.fc19.x86_64-x86_64-with-fedora-19-Schrödinger’s_Cat
[debug] Proxy map: {}
[Brightcove] 3062914423001: Downloading webpage
[Brightcove] 3062914423001: Extracting information
ERROR: Unable to extract json; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 493, in extract_info
    ie_result = ie.extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 158, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/brightcove.py", line 166, in _real_extract
    videoPlayer[0], query_str, query, referer=referer)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/brightcove.py", line 182, in _get_video_info
    info = self._search_regex(r'var experienceJSON = ({.*?});', webpage, 'json')
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 353, in _search_regex
    raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract json;

please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

@ghost
Copy link

@ghost ghost commented Feb 1, 2014

Works for me, but downloads only first video

>youtube-dl.exe http://www.newyorker.com/online/blogs/newsdesk/2014/01/always-never-nuclear-command-and-control.html -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.newyorker.com/online/blogs/newsdesk/2014/01/always-never-nuclear-command-and-control.html', '-v']
[debug] Encodings: locale 'cp1250', fs 'mbcs', out 'cp852', pref: 'cp1250'
[debug] youtube-dl version 2014.01.23.4
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[generic] always-never-nuclear-command-and-control: Requesting header
WARNING: Falling back on generic information extractor.
[generic] always-never-nuclear-command-and-control: Downloading webpage
[generic] always-never-nuclear-command-and-control: Extracting information
[generic] Brightcove video detected.
[Brightcove] 3062938033001: Downloading webpage
[Brightcove] 3062938033001: Extracting information
[download] Always_Never - Civilian or MIlitary Control-3062938033001.mp4 has already been downloaded
@vectorsigma
Copy link
Author

@vectorsigma vectorsigma commented Feb 1, 2014

I can't even get the first one. Granted, I was trying to copy the video link directly, as opposed to using the URL to the main page. Let me try that.

@vectorsigma
Copy link
Author

@vectorsigma vectorsigma commented Feb 1, 2014

OK, using the NY URL, I can grab the first video. Can't find a way to get the other two though.

@phihag phihag closed this in 9987777 Feb 3, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Feb 3, 2014

Thanks for the report. Support for multiple Brightcove videos on one site has been added as of youtube-dl 2014.02.03.1. Type sudo youtube-dl -U to update. As you have found out yourself, you must pass in the original URL, as Brightcove requires it alongside the Brightcove URL.

@vectorsigma
Copy link
Author

@vectorsigma vectorsigma commented Feb 4, 2014

Thanks!!

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.