Skip to content

Commit

Permalink
加载本地xml时兼容旧版Jellyfin
Browse files Browse the repository at this point in the history
  • Loading branch information
Izumiko committed Sep 22, 2024
1 parent 47f511b commit eb5dd27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ede.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit eb5dd27

Please sign in to comment.