]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[pbs] Make flp embed lookup non fatal
authorSergey M․ <dstftw@gmail.com>
Fri, 6 Nov 2015 19:08:40 +0000 (01:08 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 6 Nov 2015 19:08:40 +0000 (01:08 +0600)
youtube_dl/extractor/pbs.py

index a690f9c29f11fe2f04a60995ab1f5f2189a2e880..8fb9b1849cfd96e5ce21ef2ffcffba200f8ba482 100644 (file)
@@ -210,7 +210,7 @@ class PBSIE(InfoExtractor):
 
             # Fronline video embedded via flp
             video_id = self._search_regex(
-                r'videoid\s*:\s*"([\d+a-z]{7,})"', webpage, 'videoid')
+                r'videoid\s*:\s*"([\d+a-z]{7,})"', webpage, 'videoid', default=None)
             if video_id:
                 # pkg_id calculation is reverse engineered from
                 # http://www.pbs.org/wgbh/pages/frontline/js/flp2012.js