youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit b2ed954fc6f19a00c7c8c12f45a6a44bd1722867
parent a919ca0ad60c4ef6165fceadeb9f6ad70b53e7a8
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu, 29 Jun 2017 22:27:53 +0700

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

Diffstat:
Myoutube_dl/extractor/bbc.py | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py @@ -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