only top for doc
This commit is contained in:
parent
6c9f688ee7
commit
1977f572e4
1 changed files with 1 additions and 2 deletions
|
@ -116,8 +116,6 @@ class Item(models.Model):
|
|||
if not key:
|
||||
key = meta.attrib.get('property')
|
||||
value = meta.attrib.get('content')
|
||||
if key == "thumbnail":
|
||||
value = value.replace('/512p', '/1024p')
|
||||
if key and value:
|
||||
if key in ('viewport', ):
|
||||
continue
|
||||
|
@ -126,6 +124,7 @@ class Item(models.Model):
|
|||
data["url"] = self.url
|
||||
if "m/documents" in self.url:
|
||||
data["type"] = "document"
|
||||
data["thumbnail"] = data["thumbnail"].replace('/512p', '/1024p')
|
||||
return data
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue