projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
659aa21
)
Fix extraction of og content in single quotes
author
dst
<dstftw@gmail.com>
Thu, 30 Jan 2014 20:57:33 +0000
(
03:57
+0700)
committer
dst
<dstftw@gmail.com>
Thu, 30 Jan 2014 20:57:33 +0000
(
03:57
+0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 70ba9eaba3f1e4cc32207867ba3dc6a4ed0d2b10..2c0c75604b96cfd08a283c0d93ef36f85b525922 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-399,7
+399,7
@@
class InfoExtractor(object):
# Helper functions for extracting OpenGraph info
@staticmethod
def _og_regexes(prop):
- content_re = r'content=(?:"([^>]+?)"|\'(
.
+?)\')'
+ content_re = r'content=(?:"([^>]+?)"|\'(
[^>]
+?)\')'
property_re = r'(?:name|property)=[\'"]og:%s[\'"]' % re.escape(prop)
template = r'<meta[^>]+?%s[^>]+?%s'
return [