projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a1214
)
[atresplayer] Fix login error detection
author
zurfyx
<zurfyx@gmail.com>
Fri, 24 Mar 2017 23:45:32 +0000
(
00:45
+0100)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 25 Mar 2017 10:47:35 +0000
(17:47 +0700)
youtube_dl/extractor/atresplayer.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/atresplayer.py
b/youtube_dl/extractor/atresplayer.py
index e3c669830343bb4f698dc342adebbd764877fd4b..23a536ff22b56f7dba205d86eeafb4be7c083c29 100644
(file)
--- 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)