made some fixes on localscrapers not firing,

This commit is contained in:
tapframe 2025-08-10 12:41:49 +05:30
parent b6ed69d541
commit 0b6a17c2f6
2 changed files with 5 additions and 3 deletions

View file

@ -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)) || '{}';

View file

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