mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[bbccouk] Capture and output error message (closes #13518)
This commit is contained in:
parent
a919ca0ad6
commit
b2ed954fc6
1 changed files with 6 additions and 0 deletions
|
@ -523,6 +523,12 @@ def _real_extract(self, url):
|
|||
|
||||
webpage = self._download_webpage(url, group_id, 'Downloading video page')
|
||||
|
||||
error = self._search_regex(
|
||||
r'<div\b[^>]+\bclass=["\']smp__message delta["\'][^>]*>([^<]+)<',
|
||||
webpage, 'error', default=None)
|
||||
if error:
|
||||
raise ExtractorError(error, expected=True)
|
||||
|
||||
programme_id = None
|
||||
duration = None
|
||||
|
||||
|
|
Loading…
Reference in a new issue