projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b8c109
)
[extractor/common] Expand meta regex
author
Sergey M․
<dstftw@gmail.com>
Sat, 15 Aug 2015 09:58:30 +0000
(15:58 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 15 Aug 2015 09:58:30 +0000
(15:58 +0600)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 5982055be888a87ea08f7d388d92a0ba4cc446ab..16ae4b98ffe09c97f604981bf6c2ce9dc1e44e03 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-640,7
+640,7
@@
class InfoExtractor(object):
@staticmethod
def _meta_regex(prop):
return r'''(?isx)<meta
- (?=[^>]+(?:itemprop|name|property|id)=(["\']?)%s\1)
+ (?=[^>]+(?:itemprop|name|property|id
|http-equiv
)=(["\']?)%s\1)
[^>]+?content=(["\'])(?P<content>.*?)\2''' % re.escape(prop)
def _og_search_property(self, prop, html, name=None, **kargs):