A feature-rich command-line audio/video downloader
[xvideos] Capture and output inline error if any
Sergey M․3217377b3c1e
diff --git a/youtube_dl/extractor/xvideos.py b/youtube_dl/extractor/xvideos.pyindex 85e99e1b02..f21e0671f4 100644--- a/youtube_dl/extractor/xvideos.py+++ b/youtube_dl/extractor/xvideos.py@@ -5,6 +5,8 @@ import refrom .common import InfoExtractorfrom ..utils import (compat_urllib_parse,+ ExtractorError,+ clean_html,)@@ -28,6 +30,10 @@ class XVideosIE(InfoExtractor):self.report_extraction(video_id)+ mobj = re.search(r'<h1 class="inlineError">(.+?)</h1>', webpage)+ if mobj:+ raise ExtractorError('%s said: %s' % (self.IE_NAME, clean_html(mobj.group(1))), expected=True)+# Extract video URLvideo_url = compat_urllib_parse.unquote(self._search_regex(r'flv_url=(.+?)&', webpage, 'video URL'))