Skip to content

Commit 751aff5

Browse files
authored
Merge pull request #2897 from rommapp/romm-2889
[ROMM-2889] Add media to update_config_file
2 parents 455252d + 742a7c5 commit 751aff5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

backend/config/config_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ def _update_config_file(self) -> None:
569569
"region": self.config.SCAN_REGION_PRIORITY,
570570
"language": self.config.SCAN_LANGUAGE_PRIORITY,
571571
},
572+
"media": self.config.SCAN_MEDIA,
572573
},
573574
}
574575

backend/endpoints/configs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def get_config() -> ConfigResponse:
4747
SCAN_ARTWORK_PRIORITY=cfg.SCAN_ARTWORK_PRIORITY,
4848
SCAN_REGION_PRIORITY=cfg.SCAN_REGION_PRIORITY,
4949
SCAN_LANGUAGE_PRIORITY=cfg.SCAN_LANGUAGE_PRIORITY,
50+
SCAN_MEDIA=cfg.SCAN_MEDIA,
5051
)
5152

5253

backend/endpoints/responses/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ class ConfigResponse(TypedDict):
2727
SCAN_ARTWORK_PRIORITY: list[str]
2828
SCAN_REGION_PRIORITY: list[str]
2929
SCAN_LANGUAGE_PRIORITY: list[str]
30+
SCAN_MEDIA: list[str]

0 commit comments

Comments
 (0)