diff options
author | zurfyx <zurfyx@gmail.com> | 2017-03-25 00:45:32 +0100 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-03-25 17:47:35 +0700 |
commit | 1088d76da6cbc83d64faca5a1a987944af04b0ce (patch) | |
tree | c034aca507340c0ae4be533a42d601d647f8105a | |
parent | 31a1214076ff41efbaa7f7243565da830d1e2c7e (diff) |
[atresplayer] Fix login error detection
-rw-r--r-- | youtube_dl/extractor/atresplayer.py | 3 |
1 files changed, 2 insertions, 1 deletions
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)<ul class="list_error">(.+?)</ul>', response, 'error', default=None) + r'(?s)<ul[^>]+class="[^"]*\blist_error\b[^"]*">(.+?)</ul>', + response, 'error', default=None) if error: raise ExtractorError( 'Unable to login: %s' % error, expected=True) |