From c24281813880ca462bd89b5b776436a5d046eee5 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 14 Jan 2026 21:39:01 +0000 Subject: [PATCH 1/2] no double title --- static/js/previewPlayer.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/previewPlayer.js b/static/js/previewPlayer.js index cd1c9c12..54c67c32 100644 --- a/static/js/previewPlayer.js +++ b/static/js/previewPlayer.js @@ -101,11 +101,11 @@ pandora.ui.previewPlayer = function() { ], controlsTooltips: { close: Ox._('Close'), - open: Ox._('Open {0}', [pandora.site.itemName.singular]) + open: Ox._('Open {0}', [video.title]) }, controlsTop: [ Ox.Fullscreen.available ? 'fullscreen' : 'space16', - 'title', + 'space', 'open' ], duration: video.duration, @@ -142,6 +142,9 @@ pandora.ui.previewPlayer = function() { fullscreen: function(data) { Ox.Fullscreen.toggle(); }, + close: function() { + that.close(); + }, open: function() { $player.options({paused: true}); var url = document.location.protocol + '//' From a0b3693a2f66fd1528ac787f60cb6aa58b209935 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 15 Jan 2026 15:09:47 +0000 Subject: [PATCH 2/2] no video no cuts --- pandora/archive/cutdetection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/cutdetection.py b/pandora/archive/cutdetection.py index df6ff0dd..c50e6050 100644 --- a/pandora/archive/cutdetection.py +++ b/pandora/archive/cutdetection.py @@ -18,6 +18,8 @@ def _get_distance(data0, data1): def detect_cuts(path, seconds=True): depth = 3 info = ox.avinfo(path) + if not info.get('video'): + return [] dar = AspectRatio(info['video'][0]['display_aspect_ratio']) fps = AspectRatio(info['video'][0]['framerate']) height = 96