From 86bb19b9b605752c201d79b82bdcac2d9fc237f3 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 27 May 2021 09:41:35 +0100 Subject: [PATCH] fallback to previewRatio --- pandora/app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/app/views.py b/pandora/app/views.py index 5c76b8ec4..60a173e2c 100644 --- a/pandora/app/views.py +++ b/pandora/app/views.py @@ -245,7 +245,7 @@ def getEmbedDefaults(request, data): i = qs[0].cache response['data']['item'] = i['id'] response['data']['itemDuration'] = i['duration'] - response['data']['itemRatio'] = i['videoRatio'] + response['data']['itemRatio'] = i.get('videoRatio', settings.CONFIG['video']['previewRatio']) qs = List.objects.exclude(status='private').order_by('name') if qs.exists(): i = qs[0].json()