Skip to content

Commit

Permalink
优化Safari端 (#37)
Browse files Browse the repository at this point in the history
* Mini Logs

* UpVer

* Update For Safari
  • Loading branch information
Xarth-Mai authored Feb 23, 2024
1 parent 23cbf9c commit 259a67d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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.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
Expand Down Expand Up @@ -778,7 +778,7 @@
}

async function initConfig() {
showDebugInfo('获取服务器信息');
showDebugInfo('获取服务器信息&Token');
let token = serversInfo[0].AccessToken;
userId = serversInfo[0].UserId;

Expand All @@ -787,7 +787,6 @@
sessionUrl += '&DeviceId=' + deviceId;
}

showDebugInfo('尝试获取DevId');
let sessionInfo = await getSessionInfo(sessionUrl, "MediaBrowser Token=\"" + token + "\"");

if (!deviceId) {
Expand All @@ -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;
Expand Down

0 comments on commit 259a67d

Please sign in to comment.