From 332d9e27c1e41b4c4a52f42c6f4c3a57989eace3 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Fri, 2 May 2025 22:56:49 +0200 Subject: [PATCH] HFP-4252 Fix AV-widget not allowing to add multiple videos --- scripts/h5peditor-av.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/h5peditor-av.js b/scripts/h5peditor-av.js index 97e856d0..94e6eab7 100644 --- a/scripts/h5peditor-av.js +++ b/scripts/h5peditor-av.js @@ -319,7 +319,7 @@ H5PEditor.widgets.video = H5PEditor.widgets.audio = H5PEditor.AV = (function ($) var qualityName = (file.metadata && file.metadata.qualityName) ? file.metadata.qualityName : defaultQualityName; // Check if source is provider (Vimeo, YouTube, Panopto) - const isProvider = file.path && C.findProvider(file.path); + const isProvider = (file.path && C.findProvider(file.path)) ?? false; // Only allow single source if YouTube if (isProvider) {