[bbccouk] Capture and output error message (closes #13518)

This commit is contained in:
Sergey M․ 2017-06-29 22:27:53 +07:00
parent a919ca0ad6
commit b2ed954fc6
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -523,6 +523,12 @@ def _real_extract(self, url):
webpage = self._download_webpage(url, group_id, 'Downloading video page') 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 programme_id = None
duration = None duration = None