Exception in Brightcove extractor #2160

Closed
opened 2026-02-21 00:15:32 -05:00 by deekerman · 2 comments
Owner

Originally created by @jillh510 on GitHub (Apr 11, 2014).

python -m youtube_dl --skip-download --write-info-json -v http://www.ktvu.com/videos/news/raw-video-caltrain-releases-video-of-man-almost/vCTZdY/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--skip-download', '--write-info-json', '-v', 'http://www.ktvu.com/videos/news/raw-video-caltrain-releases-video-of-man-almost/vCTZdY/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.11.2
[debug] Python version 2.7.5 - Darwin-13.1.0-x86_64-i386-64bit
[debug] Proxy map: {}
[generic] vCTZdY: Requesting header
WARNING: Falling back on generic information extractor.
[generic] vCTZdY: Downloading webpage
[generic] vCTZdY: Extracting information
[generic] Brightcove video detected.
[download] Downloading playlist: RAW VIDEO: Caltrain releases video of man almost being hit by... | www.ktvu.com
[generic] playlist RAW VIDEO: Caltrain releases video of man almost being hit by... | www.ktvu.com: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
[Brightcove] 3356691851001: Downloading webpage
[Brightcove] 3356691851001: 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 "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 514, in extract_info
ie_result = ie.extract(url)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 161, in extract
return self._real_extract(url)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/brightcove.py", line 170, in _real_extract
videoPlayer[0], query_str, query, referer=referer)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/brightcove.py", line 186, in _get_video_info
info = self._search_regex(r'var experienceJSON = ({.*?});', webpage, 'json')
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 373, 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.

Originally created by @jillh510 on GitHub (Apr 11, 2014). python -m youtube_dl --skip-download --write-info-json -v http://www.ktvu.com/videos/news/raw-video-caltrain-releases-video-of-man-almost/vCTZdY/ [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--skip-download', '--write-info-json', '-v', 'http://www.ktvu.com/videos/news/raw-video-caltrain-releases-video-of-man-almost/vCTZdY/'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2014.04.11.2 [debug] Python version 2.7.5 - Darwin-13.1.0-x86_64-i386-64bit [debug] Proxy map: {} [generic] vCTZdY: Requesting header WARNING: Falling back on generic information extractor. [generic] vCTZdY: Downloading webpage [generic] vCTZdY: Extracting information [generic] Brightcove video detected. [download] Downloading playlist: RAW VIDEO: Caltrain releases video of man almost being hit by... | www.ktvu.com [generic] playlist RAW VIDEO: Caltrain releases video of man almost being hit by... | www.ktvu.com: Collected 1 video ids (downloading 1 of them) [download] Downloading video #1 of 1 [Brightcove] 3356691851001: Downloading webpage [Brightcove] 3356691851001: 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 "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 514, in extract_info ie_result = ie.extract(url) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 161, in extract return self._real_extract(url) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/brightcove.py", line 170, in _real_extract videoPlayer[0], query_str, query, referer=referer) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/brightcove.py", line 186, in _get_video_info info = self._search_regex(r'var experienceJSON = ({.*?});', webpage, 'json') File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 373, 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.
Author
Owner

@jaimeMF commented on GitHub (Apr 12, 2014):

Fixed, thanks for the report.

@jaimeMF commented on GitHub (Apr 12, 2014): Fixed, thanks for the report.
Author
Owner

@phihag commented on GitHub (Apr 12, 2014):

Fixed in youtube-dl 2014.04.13.

@phihag commented on GitHub (Apr 12, 2014): Fixed in youtube-dl 2014.04.13.
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-ytdl-org#2160
No description provided.