diff --git a/ede.js b/ede.js index 7ab0828..eed3853 100644 --- a/ede.js +++ b/ede.js @@ -3,7 +3,7 @@ // @description Jellyfin弹幕插件 // @namespace https://github.com/RyoLee // @author RyoLee -// @version 1.30 +// @version 1.31 // @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 @@ -778,7 +778,7 @@ } async function initConfig() { - showDebugInfo('获取服务器信息'); + showDebugInfo('获取服务器信息&Token'); let token = serversInfo[0].AccessToken; userId = serversInfo[0].UserId; @@ -787,7 +787,6 @@ sessionUrl += '&DeviceId=' + deviceId; } - showDebugInfo('尝试获取DevId'); let sessionInfo = await getSessionInfo(sessionUrl, "MediaBrowser Token=\"" + token + "\""); if (!deviceId) { @@ -813,6 +812,7 @@ let sessionInfo = await getSessionInfo(sessionUrl, authorization); if (!sessionInfo[0].NowPlayingItem) { await initConfig(); + await new Promise(resolve => setTimeout(resolve, 150)); continue; } playingInfo = sessionInfo[0].NowPlayingItem;