]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bbccouk] Fix vpid warning
authorSergey M․ <dstftw@gmail.com>
Sat, 13 Dec 2014 12:47:34 +0000 (18:47 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 13 Dec 2014 12:47:34 +0000 (18:47 +0600)
youtube_dl/extractor/bbccouk.py

index 01c02d360cd7255b14aa7aa8259de52e44701884..2d2f742aee26062af0c52a30dc5f017290daf51e 100644 (file)
@@ -209,7 +209,7 @@ class BBCCoUkIE(SubtitlesInfoExtractor):
         webpage = self._download_webpage(url, group_id, 'Downloading video page')
 
         programme_id = self._search_regex(
-            r'"vpid"\s*:\s*"([\da-z]{8})"', webpage, 'vpid', fatal=False)
+            r'"vpid"\s*:\s*"([\da-z]{8})"', webpage, 'vpid', fatal=False, default=None)
         if programme_id:
             player = self._download_json(
                 'http://www.bbc.co.uk/iplayer/episode/%s.json' % group_id,