mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:57:40 +00:00
[dramafever] Fix login error message extraction
This commit is contained in:
parent
f7a5038305
commit
36e2d3ca43
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class DramaFeverBaseIE(AMPIE):
|
|||
if all(logout_pattern not in response
|
||||
for logout_pattern in ['href="/accounts/logout/"', '>Log out<']):
|
||||
error = self._html_search_regex(
|
||||
r'(?s)class="hidden-xs prompt"[^>]*>(.+?)<',
|
||||
r'(?s)<h\d[^>]+\bclass="hidden-xs prompt"[^>]*>(.+?)</h\d',
|
||||
response, 'error message', default=None)
|
||||
if error:
|
||||
raise ExtractorError('Unable to login: %s' % error, expected=True)
|
||||
|
|
Loading…
Reference in a new issue