Merge pull request #2897 from rommapp/romm-2889

[ROMM-2889] Add media to update_config_file
This commit is contained in:
Georges-Antoine Assi
2026-01-12 10:21:09 -05:00
committed by GitHub
3 changed files with 3 additions and 0 deletions

View File

@@ -569,6 +569,7 @@ class ConfigManager:
"region": self.config.SCAN_REGION_PRIORITY,
"language": self.config.SCAN_LANGUAGE_PRIORITY,
},
"media": self.config.SCAN_MEDIA,
},
}

View File

@@ -47,6 +47,7 @@ def get_config() -> ConfigResponse:
SCAN_ARTWORK_PRIORITY=cfg.SCAN_ARTWORK_PRIORITY,
SCAN_REGION_PRIORITY=cfg.SCAN_REGION_PRIORITY,
SCAN_LANGUAGE_PRIORITY=cfg.SCAN_LANGUAGE_PRIORITY,
SCAN_MEDIA=cfg.SCAN_MEDIA,
)

View File

@@ -27,3 +27,4 @@ class ConfigResponse(TypedDict):
SCAN_ARTWORK_PRIORITY: list[str]
SCAN_REGION_PRIORITY: list[str]
SCAN_LANGUAGE_PRIORITY: list[str]
SCAN_MEDIA: list[str]