mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 22:21:17 +01:00
[pbs] Improve player regex (Closes #7059)
This commit is contained in:
parent
9c544e2537
commit
0659dfccfe
|
@ -167,7 +167,7 @@ def _extract_webpage(self, url):
|
||||||
return media_id, presumptive_id, upload_date
|
return media_id, presumptive_id, upload_date
|
||||||
|
|
||||||
url = self._search_regex(
|
url = self._search_regex(
|
||||||
r'<iframe\s+[^>]*\s+src=["\']([^\'"]+partnerplayer[^\'"]+)["\']',
|
r'(?s)<iframe[^>]+?(?:[a-z-]+?=["\'].+?["\'][^>]+?)*?\bsrc=["\']([^\'"]+partnerplayer[^\'"]+)["\']',
|
||||||
webpage, 'player URL')
|
webpage, 'player URL')
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user