[pbs] add another media id regex
authorRemita Amine <remitamine@gmail.com>
Mon, 27 Nov 2017 15:55:08 +0000 (16:55 +0100)
committerRemita Amine <remitamine@gmail.com>
Mon, 27 Nov 2017 15:55:27 +0000 (16:55 +0100)
youtube_dl/extractor/pbs.py

index b51dcbe10dd14136220516c76e6cada7f70a9b0c..f11d5da5271d91fb15f9ee006743b1360897b08e 100644 (file)
@@ -421,6 +421,7 @@ class PBSIE(InfoExtractor):
                 r'class="coveplayerid">([^<]+)<',                       # coveplayer
                 r'<section[^>]+data-coveid="(\d+)"',                    # coveplayer from http://www.pbs.org/wgbh/frontline/film/real-csi/
                 r'<input type="hidden" id="pbs_video_id_[0-9]+" value="([0-9]+)"/>',  # jwplayer
+                r"(?s)window\.PBS\.playerConfig\s*=\s*{.*?id\s*:\s*'([0-9]+)',",
             ]
 
             media_id = self._search_regex(