aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/brightcove.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-08-23 01:38:38 +0530
committerGitHub <noreply@github.com>2021-08-23 01:38:38 +0530
commit88acdbc2698169e22cdbf358e44765150434c69e (patch)
treea6cb42ac19943c4890b3ecd12b43e11808c9a0da /yt_dlp/extractor/brightcove.py
parent9b5fa9ee7ce859d63fa10b840ffff7c99c393d7e (diff)
downloadhypervideo-pre-88acdbc2698169e22cdbf358e44765150434c69e.tar.lz
hypervideo-pre-88acdbc2698169e22cdbf358e44765150434c69e.tar.xz
hypervideo-pre-88acdbc2698169e22cdbf358e44765150434c69e.zip
[extractor] Better error message for DRM (#729)
Closes #636
Diffstat (limited to 'yt_dlp/extractor/brightcove.py')
-rw-r--r--yt_dlp/extractor/brightcove.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/brightcove.py b/yt_dlp/extractor/brightcove.py
index f3d955d6b..bb68dc481 100644
--- a/yt_dlp/extractor/brightcove.py
+++ b/yt_dlp/extractor/brightcove.py
@@ -549,7 +549,7 @@ class BrightcoveNewIE(AdobePassIE):
error.get('message') or error.get('error_subcode') or error['error_code'], expected=True)
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)
+ self.report_drm(video_id)
self._sort_formats(formats)