From: Sergey M․ Date: Sat, 17 Oct 2015 19:00:37 +0000 (+0600) Subject: [dailymotion] Error spelling X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=7593fbaa126f8bf14eecff7f103cb497e3d31de5;p=youtube-dl.git [dailymotion] Error spelling --- diff --git a/youtube_dl/extractor/dailymotion.py b/youtube_dl/extractor/dailymotion.py index ea1edceb1..9cd9ff17d 100644 --- 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: - 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: