aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/dramafever.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-10-22 08:16:30 +0700
committerSergey M․ <dstftw@gmail.com>2017-10-22 08:16:30 +0700
commit36e2d3ca43145e5f13874a02447db572173cc057 (patch)
treedce1af796a21d32a7fbac96e21688b00a7993943 /youtube_dl/extractor/dramafever.py
parentf7a5038305682a2f41ca08addc338198c3c2e27b (diff)
downloadyoutube-dl-36e2d3ca43145e5f13874a02447db572173cc057.zip
youtube-dl-36e2d3ca43145e5f13874a02447db572173cc057.tar.gz
youtube-dl-36e2d3ca43145e5f13874a02447db572173cc057.tar.bz2
[dramafever] Fix login error message extraction
Diffstat (limited to 'youtube_dl/extractor/dramafever.py')
-rw-r--r--youtube_dl/extractor/dramafever.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/dramafever.py b/youtube_dl/extractor/dramafever.py
index 9a498d7..95883a0 100644
--- a/youtube_dl/extractor/dramafever.py
+++ b/youtube_dl/extractor/dramafever.py
@@ -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)