1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-26 04:02:11 +00:00

[pbs] Make flp embed lookup non fatal

This commit is contained in:
Sergey M․ 2015-11-07 01:08:40 +06:00
parent 8b6d9406db
commit 21d0c33ecd

View file

@ -210,7 +210,7 @@ class PBSIE(InfoExtractor):
# Fronline video embedded via flp # Fronline video embedded via flp
video_id = self._search_regex( 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: if video_id:
# pkg_id calculation is reverse engineered from # pkg_id calculation is reverse engineered from
# http://www.pbs.org/wgbh/pages/frontline/js/flp2012.js # http://www.pbs.org/wgbh/pages/frontline/js/flp2012.js