1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 03:32:05 +00:00

[puls4] Fix error detection (#9194)

This commit is contained in:
Yen Chi Hsuan 2016-04-16 16:22:44 +08:00
parent 260c7036ba
commit c394b4f4cb
No known key found for this signature in database
GPG key ID: 3FDDD575826C5C30

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