projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fc088f
)
[shahid] raise ExtractorError if the video is DRM protected
author
remitamine
<remitamine@gmail.com>
Sun, 10 Jan 2016 06:55:58 +0000
(07:55 +0100)
committer
remitamine
<remitamine@gmail.com>
Sun, 10 Jan 2016 06:55:58 +0000
(07:55 +0100)
youtube_dl/extractor/shahid.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/shahid.py
b/youtube_dl/extractor/shahid.py
index f76fb12c045391815df80e1f0905e2723ea5f649..1178b7a2781eb8809b99c78cce9fe80a33cafdd6 100644
(file)
--- a/
youtube_dl/extractor/shahid.py
+++ b/
youtube_dl/extractor/shahid.py
@@
-73,6
+73,9
@@
class ShahidIE(InfoExtractor):
'https://shahid.mbc.net/arContent/getPlayerContent-param-.id-%s.type-%s.html'
% (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')
video = self._download_json(