mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 07:42:47 +01:00
Fix issue preventing the subtitle search from appearing in the video osd
This commit is contained in:
@@ -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;">
|
||||
<div class="actionSheetContent">
|
||||
<span style="padding: 10px 20px;margin: -6px auto 10px;max-width: 450px;background: #c1c1c1;border-radius: 0 0 10px 10px;color: #000000;">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.</span>
|
||||
<h1 class="actionSheetTitle">Subtitle Search Results</h1>
|
||||
<div class="actionSheetScroller scrollY" id="subtitleSearchResults">
|
||||
<div class="listItem">
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user