1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 01:02:48 +01:00

[pbs] Allow empty attribute in player regex

This commit is contained in:
Sergey M․ 2015-10-04 21:19:47 +06:00
parent 0659dfccfe
commit 96229998c2

View File

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