[pbs] Improve player regex (Closes #7059)
authorSergey M․ <dstftw@gmail.com>
Sun, 4 Oct 2015 15:13:13 +0000 (21:13 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 4 Oct 2015 15:13:13 +0000 (21:13 +0600)
youtube_dl/extractor/pbs.py

index 683c81de3444d09c8abb017c0c7ecc943c21db00..0bca3152b6f021754da8677e75a8f0b5dd8579a8 100644 (file)
@@ -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)