fall back to default preview ratio if item does not have videoRatio

This commit is contained in:
j 2021-09-30 21:44:20 +01:00
commit 26708eff1f
2 changed files with 2 additions and 0 deletions

View file

@ -12,6 +12,7 @@ pandora.ui.clipList = function(videoRatio) {
fixedRatio: fixedRatio,
item: function(data, sort, size) {
size = size || 128; // fixme: is this needed?
data.videoRatio = data.videoRatio || pandora.site.video.previewRatio;
var ratio, width, height,
format, info, sortKey, title, url;
if (!ui.item) {