mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-13 04:46:08 -08:00
Enhance AniList character dictionary sync and subtitle features (#15)
This commit is contained in:
1 parent
2f07c3407a
commit
e18985fb14
696 files changed
+14297
-173564
No files matched your search
+6
-3
@@ -207,7 +207,8 @@ export function pickLibrary(
|
||||
iconPath: ensureIcon(session, lib.id) || undefined,
|
||||
}));
|
||||
const idx = showRofiIconMenu(entries, 'Jellyfin Library', initialQuery, themePath);
|
||||
return idx >= 0 ? visibleLibraries[idx].id : '';
|
||||
const selected = idx >= 0 ? visibleLibraries[idx] : undefined;
|
||||
return selected?.id ?? '';
|
||||
}
|
||||
|
||||
const lines = visibleLibraries.map((lib) => `${lib.id}\t${lib.name} [${lib.kind}]`);
|
||||
@@ -244,7 +245,8 @@ export function pickItem(
|
||||
iconPath: ensureIcon(session, item.id) || undefined,
|
||||
}));
|
||||
const idx = showRofiIconMenu(entries, 'Jellyfin Item', initialQuery, themePath);
|
||||
return idx >= 0 ? visibleItems[idx].id : '';
|
||||
const selected = idx >= 0 ? visibleItems[idx] : undefined;
|
||||
return selected?.id ?? '';
|
||||
}
|
||||
|
||||
const lines = visibleItems.map((item) => `${item.id}\t${item.display}`);
|
||||
@@ -281,7 +283,8 @@ export function pickGroup(
|
||||
iconPath: ensureIcon(session, group.id) || undefined,
|
||||
}));
|
||||
const idx = showRofiIconMenu(entries, 'Jellyfin Anime/Folder', initialQuery, themePath);
|
||||
return idx >= 0 ? visibleGroups[idx].id : '';
|
||||
const selected = idx >= 0 ? visibleGroups[idx] : undefined;
|
||||
return selected?.id ?? '';
|
||||
}
|
||||
|
||||
const lines = visibleGroups.map((group) => `${group.id}\t${group.display}`);
|
||||
|
||||
Reference in new issue
Block a user