mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-05 01:09:46 +00:00
made some fixes on localscrapers not firing,
This commit is contained in:
parent
b6ed69d541
commit
0b6a17c2f6
2 changed files with 5 additions and 3 deletions
|
|
@ -280,10 +280,11 @@ class SyncService {
|
|||
migrations.push(moveKey(k, `@user:${userId}:stremio-addons`));
|
||||
} else if (k === '@user:local:stremio-addon-order') {
|
||||
migrations.push(moveKey(k, `@user:${userId}:stremio-addon-order`));
|
||||
// Do NOT migrate local scraper keys; they are device-local and unscoped
|
||||
} else if (k === '@user:local:local-scrapers') {
|
||||
migrations.push(moveKey(k, `@user:${userId}:local-scrapers`));
|
||||
// intentionally skip
|
||||
} else if (k === '@user:local:scraper-repository-url') {
|
||||
migrations.push(moveKey(k, `@user:${userId}:scraper-repository-url`));
|
||||
// intentionally skip
|
||||
} else if (k === '@user:local:stremio-library') {
|
||||
migrations.push((async () => {
|
||||
const val = (await AsyncStorage.getItem(k)) || '{}';
|
||||
|
|
|
|||
|
|
@ -773,7 +773,8 @@ class StremioService {
|
|||
const scope = (await AsyncStorage.getItem('@user:current')) || 'local';
|
||||
const settingsJson = (await AsyncStorage.getItem(`@user:${scope}:app_settings`))
|
||||
|| (await AsyncStorage.getItem('app_settings'));
|
||||
const settings: AppSettings = settingsJson ? JSON.parse(settingsJson) : DEFAULT_SETTINGS;
|
||||
const rawSettings = settingsJson ? JSON.parse(settingsJson) : {};
|
||||
const settings: AppSettings = { ...DEFAULT_SETTINGS, ...rawSettings };
|
||||
|
||||
if (settings.enableLocalScrapers) {
|
||||
const hasScrapers = await localScraperService.hasScrapers();
|
||||
|
|
|
|||
Loading…
Reference in a new issue