projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[adobetv] use compat_str
[youtube-dl]
/
youtube_dl
/
extractor
/
dailymotion.py
diff --git
a/youtube_dl/extractor/dailymotion.py
b/youtube_dl/extractor/dailymotion.py
index ea1edceb1bb8767332a8d587b408dd5076ca79e5..9cd9ff17d2559a5648e72b1f425ba0aee5ed42b4 100644
(file)
--- a/
youtube_dl/extractor/dailymotion.py
+++ b/
youtube_dl/extractor/dailymotion.py
@@
-254,8
+254,8
@@
class DailymotionIE(DailymotionBaseInfoExtractor):
def _check_error(self, info):
if info.get('error') is not None:
def _check_error(self, info):
if info.get('error') is not None:
- msg = 'Couldn\'t get video, Dailymotion says: %s' % info['error']['title']
-
raise ExtractorError(msg
, expected=True)
+ raise ExtractorError(
+
'%s said: %s' % (self.IE_NAME, info['error']['title'])
, expected=True)
def _get_subtitles(self, video_id, webpage):
try:
def _get_subtitles(self, video_id, webpage):
try: