projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0659dfc
)
[pbs] Allow empty attribute in player regex
author
Sergey M․
<dstftw@gmail.com>
Sun, 4 Oct 2015 15:19:47 +0000
(21:19 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 4 Oct 2015 15:19:47 +0000
(21:19 +0600)
youtube_dl/extractor/pbs.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pbs.py
b/youtube_dl/extractor/pbs.py
index 0bca3152b6f021754da8677e75a8f0b5dd8579a8..66b3dda47a098d93261cadf40fbdee8a34c7c6ad 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'(?s)<iframe[^>]+?(?:[a-z-]+?=["\'].
+
?["\'][^>]+?)*?\bsrc=["\']([^\'"]+partnerplayer[^\'"]+)["\']',
+ r'(?s)<iframe[^>]+?(?:[a-z-]+?=["\'].
*
?["\'][^>]+?)*?\bsrc=["\']([^\'"]+partnerplayer[^\'"]+)["\']',
webpage, 'player URL')
mobj = re.match(self._VALID_URL, url)