From: zurfyx Date: Fri, 24 Mar 2017 23:45:32 +0000 (+0100) Subject: [atresplayer] Fix login error detection X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1088d76da6cbc83d64faca5a1a987944af04b0ce;p=youtube-dl [atresplayer] Fix login error detection --- diff --git a/youtube_dl/extractor/atresplayer.py b/youtube_dl/extractor/atresplayer.py index e3c669830..23a536ff2 100644 --- a/youtube_dl/extractor/atresplayer.py +++ b/youtube_dl/extractor/atresplayer.py @@ -90,7 +90,8 @@ class AtresPlayerIE(InfoExtractor): request, None, 'Logging in as %s' % username) error = self._html_search_regex( - r'(?s)', response, 'error', default=None) + r'(?s)]+class="[^"]*\blist_error\b[^"]*">(.+?)', + response, 'error', default=None) if error: raise ExtractorError( 'Unable to login: %s' % error, expected=True)