From: Yen Chi Hsuan Date: Sat, 16 Apr 2016 08:22:44 +0000 (+0800) Subject: [puls4] Fix error detection (#9194) X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=c394b4f4cb6d6071613a1733d0c3188e5882f476;p=youtube-dl.git [puls4] Fix error detection (#9194) --- diff --git a/youtube_dl/extractor/puls4.py b/youtube_dl/extractor/puls4.py index cce84b9e4..fca30e1aa 100644 --- a/youtube_dl/extractor/puls4.py +++ b/youtube_dl/extractor/puls4.py @@ -40,7 +40,7 @@ class Puls4IE(InfoExtractor): webpage = self._download_webpage(url, video_id) error_message = self._html_search_regex( - r'
(.+?)
', + r']+class="message-error"[^>]*>(.+?)', webpage, 'error message', default=None) if error_message: raise ExtractorError(