Brightcove video raises TypeError exception #2486

Open
opened 2026-02-21 00:23:13 -05:00 by deekerman · 0 comments
Owner

Originally created by @jillh510 on GitHub (Jun 23, 2014).

python -m youtube_dl -v -f mp4 http://www.slate.com/blogs/browbeat/2014/06/09/jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does.html
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-f', 'mp4', 'http://www.slate.com/blogs/browbeat/2014/06/09/jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.06.19
[debug] Python version 2.7.5 - Darwin-13.2.0-x86_64-i386-64bit
[debug] Proxy map: {}
[generic] jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does: Requesting header
WARNING: Falling back on generic information extractor.
[generic] jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does: Downloading webpage
[generic] jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does: Extracting information
[generic] Brightcove video detected.
[download] Downloading playlist: Jon Snow brooding supercut: The Game of Thrones character doing what he does best (VIDEO).
[generic] playlist Jon Snow brooding supercut: The Game of Thrones character doing what he does best (VIDEO).: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
[Brightcove] 3613459920001: Downloading webpage
[Brightcove] 3613459920001: Extracting information
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/main.py", line 18, in
youtube_dl.main()
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/init.py", line 852, in main
_real_main(argv)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/init.py", line 842, in _real_main
retcode = ydl.download(all_urls)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1050, in download
self.extract_info(url)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 527, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 645, in process_ie_result
extra_info=extra)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 571, in process_ie_result
extra_info=extra_info)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info
ie_result = ie.extract(url)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 167, in extract
return self._real_extract(url)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/brightcove.py", line 190, 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 208, in _get_video_info
video_info = info['programmedContent']['videoPlayer']['mediaDTO']
TypeError: 'NoneType' object has no attribute 'getitem'

Originally created by @jillh510 on GitHub (Jun 23, 2014). python -m youtube_dl -v -f mp4 http://www.slate.com/blogs/browbeat/2014/06/09/jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does.html [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-v', '-f', 'mp4', 'http://www.slate.com/blogs/browbeat/2014/06/09/jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does.html'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2014.06.19 [debug] Python version 2.7.5 - Darwin-13.2.0-x86_64-i386-64bit [debug] Proxy map: {} [generic] jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does: Requesting header WARNING: Falling back on generic information extractor. [generic] jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does: Downloading webpage [generic] jon_snow_brooding_supercut_the_game_of_thrones_character_doing_what_he_does: Extracting information [generic] Brightcove video detected. [download] Downloading playlist: Jon Snow brooding supercut: The Game of Thrones character doing what he does best (VIDEO). [generic] playlist Jon Snow brooding supercut: The Game of Thrones character doing what he does best (VIDEO).: Collected 1 video ids (downloading 1 of them) [download] Downloading video #1 of 1 [Brightcove] 3613459920001: Downloading webpage [Brightcove] 3613459920001: Extracting information Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/__main__.py", line 18, in <module> youtube_dl.main() File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/**init**.py", line 852, in main _real_main(argv) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/__init__.py", line 842, in _real_main retcode = ydl.download(all_urls) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1050, in download self.extract_info(url) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 527, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 645, in process_ie_result extra_info=extra) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 571, in process_ie_result extra_info=extra_info) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info ie_result = ie.extract(url) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 167, in extract return self._real_extract(url) File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/brightcove.py", line 190, 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 208, in _get_video_info video_info = info['programmedContent']['videoPlayer']['mediaDTO'] TypeError: 'NoneType' object has no attribute '__getitem__'
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#2486
No description provided.