summary refs log tree commit diff
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
parentf7a5038305682a2f41ca08addc338198c3c2e27b (diff)
downloadyoutube-dl-36e2d3ca43145e5f13874a02447db572173cc057.tar.gz
youtube-dl-36e2d3ca43145e5f13874a02447db572173cc057.tar.xz
youtube-dl-36e2d3ca43145e5f13874a02447db572173cc057.zip
[dramafever] Fix login error message extraction
-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 9a498d72a..95883a037 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)