projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c544e2
)
[pbs] Improve player regex (Closes #7059)
author
Sergey M․
<dstftw@gmail.com>
Sun, 4 Oct 2015 15:13:13 +0000
(21:13 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 4 Oct 2015 15:13:13 +0000
(21:13 +0600)
youtube_dl/extractor/pbs.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pbs.py
b/youtube_dl/extractor/pbs.py
index 683c81de3444d09c8abb017c0c7ecc943c21db00..0bca3152b6f021754da8677e75a8f0b5dd8579a8 100644
(file)
--- 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-]+?=["\'].+?["\'][^>]+?)*?\b
src=["\']([^\'"]+partnerplayer[^\'"]+)["\']',
webpage, 'player URL')
mobj = re.match(self._VALID_URL, url)