mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[shahid] raise ExtractorError if the video is DRM protected
This commit is contained in:
parent
3fc088f8c7
commit
2334762b03
@ -73,6 +73,9 @@ def _real_extract(self, url):
|
|||||||
'https://shahid.mbc.net/arContent/getPlayerContent-param-.id-%s.type-%s.html'
|
'https://shahid.mbc.net/arContent/getPlayerContent-param-.id-%s.type-%s.html'
|
||||||
% (video_id, api_vars['type']), video_id, 'Downloading player JSON')
|
% (video_id, api_vars['type']), video_id, 'Downloading player JSON')
|
||||||
|
|
||||||
|
if player.get('drm'):
|
||||||
|
raise ExtractorError('This video is DRM protected.', expected=True)
|
||||||
|
|
||||||
formats = self._extract_m3u8_formats(player['url'], video_id, 'mp4')
|
formats = self._extract_m3u8_formats(player['url'], video_id, 'mp4')
|
||||||
|
|
||||||
video = self._download_json(
|
video = self._download_json(
|
||||||
|
Loading…
Reference in New Issue
Block a user