Browse Source

[pbs] Improve player regex (Closes #7059)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
0659dfccfe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/pbs.py

+ 1
- 1
youtube_dl/extractor/pbs.py View File

@ -167,7 +167,7 @@ class PBSIE(InfoExtractor):
return media_id, presumptive_id, upload_date
url = self._search_regex(
r'<iframe\s+[^>]*\s+src=["\']([^\'"]+partnerplayer[^\'"]+)["\']',
r'(?s)<iframe[^>]+?(?:[a-z-]+?=["\'].+?["\'][^>]+?)*?\bsrc=["\']([^\'"]+partnerplayer[^\'"]+)["\']',
webpage, 'player URL')
mobj = re.match(self._VALID_URL, url)


Loading…
Cancel
Save