From cd0943625499f86dba7c279a4246389304b86815 Mon Sep 17 00:00:00 2001 From: jduehring Date: Mon, 9 Sep 2024 15:47:24 +0200 Subject: [PATCH 1/2] fix loading when 'video' key is missing --- frontend/js/integrations/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/integrations/search.js b/frontend/js/integrations/search.js index 8f84ed52e..842e4122f 100644 --- a/frontend/js/integrations/search.js +++ b/frontend/js/integrations/search.js @@ -184,8 +184,8 @@ define([ return { src: track.url, type: track.mimetype, - framerate: track.video.framerate, - resolution: track.video.resolution + framerate: track.video && track.video.framerate, + resolution: track.video && track.video.resolution }; }) ); From bf39a876494ce21a9b6db7094e420bc199d72607 Mon Sep 17 00:00:00 2001 From: Julian Kniephoff Date: Tue, 29 Oct 2024 12:35:46 +0100 Subject: [PATCH 2/2] Actually, remove the unused fields altogether These probably came in with some unfinished stuff in the `next` branch. --- frontend/js/integrations/search.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/js/integrations/search.js b/frontend/js/integrations/search.js index 842e4122f..b81b6758f 100644 --- a/frontend/js/integrations/search.js +++ b/frontend/js/integrations/search.js @@ -183,9 +183,7 @@ define([ videos.map(function (track) { return { src: track.url, - type: track.mimetype, - framerate: track.video && track.video.framerate, - resolution: track.video && track.video.resolution + type: track.mimetype }; }) );