]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/wakanim.py
[extractor] Better error message for DRM (#729)
[yt-dlp.git] / yt_dlp / extractor / wakanim.py
index baa87e27a2a31fc2f805f6f21ed4914e3868d26d..c956d616ed50eda6f9a3269a20e3e4907aca1524 100644 (file)
@@ -3,7 +3,6 @@
 
 from .common import InfoExtractor
 from ..utils import (
-    ExtractorError,
     merge_dicts,
     urljoin,
 )
@@ -47,7 +46,7 @@ def _real_extract(self, url):
                 r'encryption%3D(c(?:enc|bc(?:s-aapl)?))',
                 m3u8_url, 'encryption', default=None)
             if encryption in ('cenc', 'cbcs-aapl'):
-                raise ExtractorError('This video is DRM protected.', expected=True)
+                self.report_drm(video_id)
 
         formats = self._extract_m3u8_formats(
             m3u8_url, video_id, 'mp4', entry_protocol='m3u8_native',