mirror of
https://github.com/l1ving/youtube-dl
synced 2026-06-07 23:18:34 +08:00
[pbs] Improve player regex (Closes #7059)
This commit is contained in:
committed by
dabiboo
Unverified
parent
361174e268
commit
07da8f1c0b
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user