X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fcommon.py;h=9c20d30b4fe844812e0dc7441e796cc604e7c96f;hb=9f9be844fcc5155ab3e832c8428c8f016bea819b;hp=e0ccba533534709b6ce65af518ca16fadee0c4ea;hpb=fa5d47af4b82356c39c1e8d7b2ada9b539371735;p=youtube-dl diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index e0ccba533..9c20d30b4 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -322,6 +322,8 @@ 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 escaped is None: + return None return unescapeHTML(escaped) def _og_search_thumbnail(self, html, **kargs):