only top for doc

This commit is contained in:
j 2023-12-01 20:46:58 +01:00
parent 6c9f688ee7
commit 1977f572e4
1 changed files with 1 additions and 2 deletions

View File

@ -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