[atresplayer] Fix login error detection
authorzurfyx <zurfyx@gmail.com>
Fri, 24 Mar 2017 23:45:32 +0000 (00:45 +0100)
committerSergey M․ <dstftw@gmail.com>
Sat, 25 Mar 2017 10:47:35 +0000 (17:47 +0700)
youtube_dl/extractor/atresplayer.py

index e3c669830343bb4f698dc342adebbd764877fd4b..23a536ff22b56f7dba205d86eeafb4be7c083c29 100644 (file)
@@ -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)