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()