from .common import InfoExtractor
from ..utils import (
+ ExtractorError,
float_or_none,
xpath_text,
)
webpage = self._download_webpage(url, display_id)
+ if any(p in webpage for p in ('>Video Not Found<', '>404 Error<')):
+ raise ExtractorError('Video %s does not exist' % video_id, expected=True)
+
config = self._download_xml(
self._search_regex(
r"var\s+cnf\s*=\s*'([^']+)'", webpage, 'cnf url'),