-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 13.2.1
-
Fix Version/s: 13.2.2
-
Component/s: Repository, Catalog, Learning resources
-
Labels:None
-
Funded by:
The Panopto url is scanned for the host panopto.eu. So it's not possible to add urls from other servers. A better way is to test for the substring "/Panopto/":
diff --git a/src/main/java/org/olat/modules/video/VideoFormat.java b/src/main/java/org/olat/modules/video/VideoFormat.java index f46b926..3f2177a 100644 --- a/src/main/java/org/olat/modules/video/VideoFormat.java +++ b/src/main/java/org/olat/modules/video/VideoFormat.java @@ -70,7 +70,7 @@ return VideoFormat.youtube; } else if(host.endsWith("vimeo.com")) { return VideoFormat.vimeo; - } else if(host.endsWith("panopto.eu")) { + } else if(url.indexOf("/Panopto/") > 0) { return VideoFormat.panopto; } else if(url.endsWith(".mp4")) { return VideoFormat.mp4;