Fix Album Tag Consistency job: add missing _get_settings method
This commit is contained in:
parent
96fa3fe388
commit
f247841665
1 changed files with 8 additions and 0 deletions
|
|
@ -142,6 +142,14 @@ class AlbumTagConsistencyJob(RepairJob):
|
||||||
}
|
}
|
||||||
auto_fix = False
|
auto_fix = False
|
||||||
|
|
||||||
|
def _get_settings(self, context: JobContext) -> dict:
|
||||||
|
"""Get job settings from config, merged with defaults."""
|
||||||
|
cfg = context.config_manager.get(f'repair.jobs.{self.job_id}.settings', {})
|
||||||
|
merged = dict(self.default_settings)
|
||||||
|
if isinstance(cfg, dict):
|
||||||
|
merged.update(cfg)
|
||||||
|
return merged
|
||||||
|
|
||||||
def scan(self, context: JobContext) -> JobResult:
|
def scan(self, context: JobContext) -> JobResult:
|
||||||
result = JobResult()
|
result = JobResult()
|
||||||
settings = self._get_settings(context)
|
settings = self._get_settings(context)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue