A feature-rich command-line audio/video downloader
[common] Simplify og_search_property
Philipp Hagemeistereb0a83986642
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.pyindex fb2d50a098..9c20d30b4f 100644--- a/youtube_dl/extractor/common.py+++ b/youtube_dl/extractor/common.py@@ -322,9 +322,9 @@ class InfoExtractor(object):if name is None:name = 'OpenGraph %s' % propescaped = 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)