From: Sergey M․ Date: Sun, 4 Oct 2015 15:19:47 +0000 (+0600) Subject: [pbs] Allow empty attribute in player regex X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=96229998c29705c8ee4230915ec7ff050bcfecf8;p=youtube-dl [pbs] Allow empty attribute in player regex --- diff --git a/youtube_dl/extractor/pbs.py b/youtube_dl/extractor/pbs.py index 0bca3152b..66b3dda47 100644 --- a/youtube_dl/extractor/pbs.py +++ b/youtube_dl/extractor/pbs.py @@ -167,7 +167,7 @@ class PBSIE(InfoExtractor): return media_id, presumptive_id, upload_date url = self._search_regex( - r'(?s)]+?(?:[a-z-]+?=["\'].+?["\'][^>]+?)*?\bsrc=["\']([^\'"]+partnerplayer[^\'"]+)["\']', + r'(?s)]+?(?:[a-z-]+?=["\'].*?["\'][^>]+?)*?\bsrc=["\']([^\'"]+partnerplayer[^\'"]+)["\']', webpage, 'player URL') mobj = re.match(self._VALID_URL, url)