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 @@ def _real_extract(self, url): 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(