X-Git-Url: https://git.rapsys.eu/youtubedl/blobdiff_plain/415fdb62500dca2e22067a05008dfbf87c75b662..ac0ab68f16560b7354afa5c8f02a9767fd78ffb7:/youtube_dl/extractor/playvid.py diff --git a/youtube_dl/extractor/playvid.py b/youtube_dl/extractor/playvid.py index b1322f1..cd3905a 100644 --- a/youtube_dl/extractor/playvid.py +++ b/youtube_dl/extractor/playvid.py @@ -4,6 +4,8 @@ import re from .common import InfoExtractor from ..utils import ( + ExtractorError, + clean_html, compat_urllib_parse, ) @@ -28,6 +30,11 @@ class PlayvidIE(InfoExtractor): webpage = self._download_webpage(url, video_id) + m_error = re.search( + r'
\s*
\s*
(?P.+?)
\s*
', webpage) + if m_error: + raise ExtractorError(clean_html(m_error.group('msg')), expected=True) + video_title = None duration = None video_thumbnail = None