mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Prevent caches from updating while Video is playing. Also improve People caching for episodes
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
}
|
||||
|
||||
async function queryItems(url) {
|
||||
await window.LibraryCacheUtils?.waitWhileCacheNetworkPaused?.();
|
||||
const api = getApiHelper();
|
||||
if (!api?.getQuery) throw new Error('apiHelper.getQuery unavailable');
|
||||
return (await api.getQuery(url, { useCache: false })) || { Items: [], TotalRecordCount: 0 };
|
||||
|
||||
Reference in New Issue
Block a user