[pbs] Fix multi part videos extraction

This commit is contained in:
Sergey M․ 2016-02-11 22:02:37 +06:00
parent a7ab46375b
commit 6b3fbd3425
1 changed files with 8 additions and 4 deletions

View File

@ -366,8 +366,12 @@ class PBSIE(InfoExtractor):
webpage, 'upload date', default=None)) webpage, 'upload date', default=None))
# tabbed frontline videos # tabbed frontline videos
tabbed_videos = re.findall( MULTI_PART_REGEXES = (
r'<div[^>]+class="videotab[^"]*"[^>]+vid="(\d+)"', webpage) r'<div[^>]+class="videotab[^"]*"[^>]+vid="(\d+)"',
r'<a[^>]+href=["\']#video-\d+["\'][^>]+data-coveid=["\'](\d+)',
)
for p in MULTI_PART_REGEXES:
tabbed_videos = re.findall(p, webpage)
if tabbed_videos: if tabbed_videos:
return tabbed_videos, presumptive_id, upload_date return tabbed_videos, presumptive_id, upload_date