1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

OpenGraphThumbMixin: more matches for this.

I saw this variant on dn.se
This commit is contained in:
Johan Andersson 2014-01-26 01:19:17 +01:00
parent 7010adc6e6
commit 77e2235b48

View File

@ -49,7 +49,9 @@ class OpenGraphThumbMixin(object):
if match is None:
match = re.search(r'<meta content="([^"]*)" property="og:image"', data)
if match is None:
return
match = re.search(r'<meta name="og:image" property="og:image" content="([^"]*)" />', data)
if match is None:
return
download_thumbnail(options, match.group(1))