Browse Source

[common] Simplify og_search_property

rtmp_test
Philipp Hagemeister 11 years ago
parent
commit
eb0a839866
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      youtube_dl/extractor/common.py

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

@ -322,9 +322,9 @@ class InfoExtractor(object):
if name is None:
name = 'OpenGraph %s' % prop
escaped = self._search_regex(self._og_regex(prop), html, name, flags=re.DOTALL, **kargs)
if not escaped is None:
return unescapeHTML(escaped)
return None
if escaped is None:
return None
return unescapeHTML(escaped)
def _og_search_thumbnail(self, html, **kargs):
return self._og_search_property('image', html, u'thumbnail url', fatal=False, **kargs)


Loading…
Cancel
Save