[puls4] Fix error detection (#9194)

pull/9216/head
Yen Chi Hsuan 9 years ago
parent 260c7036ba
commit c394b4f4cb
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30

@ -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(

Loading…
Cancel
Save