aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/atresplayer.py
diff options
context:
space:
mode:
authorzurfyx <zurfyx@gmail.com>2017-03-25 00:45:32 +0100
committerSergey M․ <dstftw@gmail.com>2017-03-25 17:47:35 +0700
commit1088d76da6cbc83d64faca5a1a987944af04b0ce (patch)
treec034aca507340c0ae4be533a42d601d647f8105a /youtube_dl/extractor/atresplayer.py
parent31a1214076ff41efbaa7f7243565da830d1e2c7e (diff)
[atresplayer] Fix login error detection
Diffstat (limited to 'youtube_dl/extractor/atresplayer.py')
-rw-r--r--youtube_dl/extractor/atresplayer.py3
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)