Browse Source

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

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
b2ed954fc6
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      youtube_dl/extractor/bbc.py

+ 6
- 0
youtube_dl/extractor/bbc.py View File

@ -523,6 +523,12 @@ class BBCCoUkIE(InfoExtractor):
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…
Cancel
Save