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();