Browse Source

Fix extraction of og content in single quotes

totalwebcasting
dst 11 years ago
parent
commit
c1206423c4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/common.py

+ 1
- 1
youtube_dl/extractor/common.py View File

@ -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 [


Loading…
Cancel
Save