forked from 0x2620/pandora
fallback to previewRatio
This commit is contained in:
parent
a9f883859a
commit
86bb19b9b6
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue