From: Sergey M․ Date: Sun, 4 Oct 2015 15:13:13 +0000 (+0600) Subject: [pbs] Improve player regex (Closes #7059) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=0659dfccfea9df3206c476e83a2b090456c25a83;p=youtube-dl [pbs] Improve player regex (Closes #7059) --- diff --git a/youtube_dl/extractor/pbs.py b/youtube_dl/extractor/pbs.py index 683c81de3..0bca3152b 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+src=["\']([^\'"]+partnerplayer[^\'"]+)["\']', + r'(?s)]+?(?:[a-z-]+?=["\'].+?["\'][^>]+?)*?\bsrc=["\']([^\'"]+partnerplayer[^\'"]+)["\']', webpage, 'player URL') mobj = re.match(self._VALID_URL, url)