From 1977f572e4018c95e64a135366dd9608969d0395 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 1 Dec 2023 20:46:58 +0100 Subject: [PATCH] only top for doc --- app/item/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/item/models.py b/app/item/models.py index efb08ad..da5fbde 100644 --- a/app/item/models.py +++ b/app/item/models.py @@ -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