From 08a25e948ae9fc3633c92e3cb2dd98c02ba38e58 Mon Sep 17 00:00:00 2001 From: HighImKevin Date: Mon, 5 Oct 2026 05:58:21 -0400 Subject: [PATCH] Fix issue preventing the subtitle search from appearing in the video osd --- scripts/subtitleSearch.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/subtitleSearch.js b/scripts/subtitleSearch.js index fa29c90..7601a58 100644 --- a/scripts/subtitleSearch.js +++ b/scripts/subtitleSearch.js @@ -277,7 +277,6 @@ data-history="true" data-removeonclose="true" style="animation: 140ms ease-out 0s 1 normal both running scaleup; position: fixed; margin: 0px;">
- If you have ${serverName} open in multiple tabs the subtitle will be downloaded, but the player will not switch to the subtitle and it will appear as if the download is hanging.

Subtitle Search Results

@@ -1090,11 +1089,13 @@ } try { - // Check if ApiClient is available first - if (!isApiClientAvailable()) { - LOG('ApiClient not available, skipping initialization'); + // Wait for login to complete + if (!window.userHelper?.waitForLogin) { + LOG('userHelper.waitForLogin not available, waiting'); + setTimeout(initialize, 1000); return; } + await window.userHelper.waitForLogin(); // Check permissions first const hasPermission = await checkSubtitlePermissions();