]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[puls4] Fix error detection (#9194)
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 16 Apr 2016 08:22:44 +0000 (16:22 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 16 Apr 2016 08:22:44 +0000 (16:22 +0800)
youtube_dl/extractor/puls4.py

index cce84b9e4d95e53731f01d334830faac9f1e008d..fca30e1aae5b35f9ef439fccc8396b5127f79aa9 100644 (file)
@@ -40,7 +40,7 @@ class Puls4IE(InfoExtractor):
         webpage = self._download_webpage(url, video_id)
 
         error_message = self._html_search_regex(
-            r'<div class="message-error">(.+?)</div>',
+            r'<div[^>]+class="message-error"[^>]*>(.+?)</div>',
             webpage, 'error message', default=None)
         if error_message:
             raise ExtractorError(