aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/brightcove.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-05-17 17:53:08 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-05-17 18:59:51 +0530
commita06916d98e1669f9b7d821bcb3ca6d13bd6429fe (patch)
treee6484fd0b6301d0051a0300c866cc2922a4437b7 /yt_dlp/extractor/brightcove.py
parent681de68e9df67f07dde3fbbc6cb2e65a78b2bb16 (diff)
downloadhypervideo-pre-a06916d98e1669f9b7d821bcb3ca6d13bd6429fe.tar.lz
hypervideo-pre-a06916d98e1669f9b7d821bcb3ca6d13bd6429fe.tar.xz
hypervideo-pre-a06916d98e1669f9b7d821bcb3ca6d13bd6429fe.zip
[extractor] Add `write_debug` and `get_param`
Diffstat (limited to 'yt_dlp/extractor/brightcove.py')
-rw-r--r--yt_dlp/extractor/brightcove.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/brightcove.py b/yt_dlp/extractor/brightcove.py
index d2fd10064..9f643a9e7 100644
--- a/yt_dlp/extractor/brightcove.py
+++ b/yt_dlp/extractor/brightcove.py
@@ -478,7 +478,7 @@ class BrightcoveNewIE(AdobePassIE):
container = source.get('container')
ext = mimetype2ext(source.get('type'))
src = source.get('src')
- skip_unplayable = not self._downloader.params.get('allow_unplayable_formats')
+ skip_unplayable = not self.get_param('allow_unplayable_formats')
# https://support.brightcove.com/playback-api-video-fields-reference#key_systems_object
if skip_unplayable and (container == 'WVM' or source.get('key_systems')):
num_drm_sources += 1
@@ -547,7 +547,7 @@ class BrightcoveNewIE(AdobePassIE):
error = errors[0]
self.raise_no_formats(
error.get('message') or error.get('error_subcode') or error['error_code'], expected=True)
- elif (not self._downloader.params.get('allow_unplayable_formats')
+ elif (not self.get_param('allow_unplayable_formats')
and sources and num_drm_sources == len(sources)):
raise ExtractorError('This video is DRM protected.', expected=True)