diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-23 01:38:38 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 01:38:38 +0530 |
commit | 88acdbc2698169e22cdbf358e44765150434c69e (patch) | |
tree | a6cb42ac19943c4890b3ecd12b43e11808c9a0da /yt_dlp/extractor/ceskatelevize.py | |
parent | 9b5fa9ee7ce859d63fa10b840ffff7c99c393d7e (diff) | |
download | hypervideo-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/ceskatelevize.py')
-rw-r--r-- | yt_dlp/extractor/ceskatelevize.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/ceskatelevize.py b/yt_dlp/extractor/ceskatelevize.py index b2ebfdadd..5e04d38a2 100644 --- a/yt_dlp/extractor/ceskatelevize.py +++ b/yt_dlp/extractor/ceskatelevize.py @@ -147,9 +147,6 @@ class CeskaTelevizeIE(InfoExtractor): is_live = item.get('type') == 'LIVE' formats = [] for format_id, stream_url in item.get('streamUrls', {}).items(): - if (not self.get_param('allow_unplayable_formats') - and 'drmOnly=true' in stream_url): - continue if 'playerType=flash' in stream_url: stream_formats = self._extract_m3u8_formats( stream_url, playlist_id, 'mp4', 'm3u8_native', @@ -158,6 +155,9 @@ class CeskaTelevizeIE(InfoExtractor): stream_formats = self._extract_mpd_formats( stream_url, playlist_id, mpd_id='dash-%s' % format_id, fatal=False) + if 'drmOnly=true' in stream_url: + for f in stream_formats: + f['has_drm'] = True # See https://github.com/ytdl-org/youtube-dl/issues/12119#issuecomment-280037031 if format_id == 'audioDescription': for f in stream_formats: |