mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-30 11:14:53 +00:00
@@ -65,10 +65,12 @@ class BitChuteIE(InfoExtractor):
|
|||||||
error = self._html_search_regex(r'<h1 class="page-title">([^<]+)</h1>', webpage, 'error', default='Cannot find video')
|
error = self._html_search_regex(r'<h1 class="page-title">([^<]+)</h1>', webpage, 'error', default='Cannot find video')
|
||||||
if error == 'Video Unavailable':
|
if error == 'Video Unavailable':
|
||||||
raise GeoRestrictedError(error)
|
raise GeoRestrictedError(error)
|
||||||
raise ExtractorError(error)
|
raise ExtractorError(error, expected=True)
|
||||||
formats = entries[0]['formats']
|
formats = entries[0]['formats']
|
||||||
|
|
||||||
self._check_formats(formats, video_id)
|
self._check_formats(formats, video_id)
|
||||||
|
if not formats:
|
||||||
|
raise self.raise_no_formats('Video is unavailable', expected=True, video_id=video_id)
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
description = self._html_search_regex(
|
description = self._html_search_regex(
|
||||||
|
Reference in New Issue
Block a user