diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-04 21:13:13 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-04 21:13:13 +0600 |
commit | 0659dfccfea9df3206c476e83a2b090456c25a83 (patch) | |
tree | c5691b389f687d695e9c46897f9b6285e7e68981 /youtube_dl/extractor | |
parent | 9c544e2537abda1d65e96f2b33a79984f3ab7c10 (diff) |
[pbs] Improve player regex (Closes #7059)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/pbs.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'<iframe\s+[^>]*\s+src=["\']([^\'"]+partnerplayer[^\'"]+)["\']', + r'(?s)<iframe[^>]+?(?:[a-z-]+?=["\'].+?["\'][^>]+?)*?\bsrc=["\']([^\'"]+partnerplayer[^\'"]+)["\']', webpage, 'player URL') mobj = re.match(self._VALID_URL, url) |