aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/shahid.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-07-18 22:55:40 +0100
committerremitamine <remitamine@gmail.com>2015-07-18 22:55:40 +0100
commit02c126a7c2453b101505e3c7b8209e49e36fcd71 (patch)
treefb6aabbb124dadba9fda8f5cf1fb6b66d1b32286 /youtube_dl/extractor/shahid.py
parent114ed20e6435f9a68eb757f2d6e26e7ea941afbf (diff)
[shahid] raise ExtractorError instead of warning
Diffstat (limited to 'youtube_dl/extractor/shahid.py')
-rw-r--r--youtube_dl/extractor/shahid.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/shahid.py b/youtube_dl/extractor/shahid.py
index d492070da..6d76ef590 100644
--- a/youtube_dl/extractor/shahid.py
+++ b/youtube_dl/extractor/shahid.py
@@ -1,5 +1,8 @@
from .common import InfoExtractor
-from ..utils import get_element_by_id
+from ..utils import (
+ get_element_by_id,
+ ExtractorError,
+}
class ShahidIE(InfoExtractor):
_VALID_URL = r'https?://shahid\.mbc\.net/ar/episode/(?P<id>\d+)/?'
@@ -43,7 +46,7 @@ class ShahidIE(InfoExtractor):
m3u8_url = player_json_data['url']
else:
for error in json_data['error'].values():
- self.report_warning(error)
+ raise ExtractorError(error)
return
formats = self._extract_m3u8_formats(m3u8_url, video_id)
return {