From eb5dd27a5aa9073bef44fb67fc3e4ff290b67bf8 Mon Sep 17 00:00:00 2001 From: Izumiko Date: Sun, 22 Sep 2024 19:37:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=9C=AC=E5=9C=B0xml?= =?UTF-8?q?=E6=97=B6=E5=85=BC=E5=AE=B9=E6=97=A7=E7=89=88Jellyfin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ede.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ede.js b/ede.js index 1244461..858e3d6 100644 --- a/ede.js +++ b/ede.js @@ -3,7 +3,7 @@ // @description Jellyfin弹幕插件 // @namespace https://github.com/RyoLee // @author RyoLee -// @version 1.45 +// @version 1.46 // @copyright 2022, RyoLee (https://github.com/RyoLee) // @license MIT; https://raw.githubusercontent.com/Izumiko/jellyfin-danmaku/jellyfin/LICENSE // @icon https://github.githubassets.com/pinned-octocat.svg @@ -1049,7 +1049,7 @@ } async function getCommentsByPluginApi(jellyfinItemId) { - const path = window.location.pathname.replace(/\/web\//, '/api/danmu/'); + const path = window.location.pathname.replace(/\/web\/(index\.html)?/, '/api/danmu/'); const url = window.location.origin + path + jellyfinItemId + '/raw'; const response = await makeGetRequest(url); if (!response.ok) {