better previews for documents

This commit is contained in:
j 2023-12-01 20:43:02 +01:00
commit f5e4ad0de6
2 changed files with 3 additions and 0 deletions

View file

@ -116,6 +116,8 @@ 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