refactor: simplify NFO handling, remove legacy services

- Drop nfo_factory, nfo_repair_service, nfo_service, series_manager_service
- Delete key_resolution_service, consolidate into folder_rename_service
- Remove bulk of NFO-related tests (coverage via integration tests)
- Streamline SeriesApp, background_loader, initialization services
- Add folder_rename_service to scheduler

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-04 18:54:31 +02:00
parent 97caaf0d18
commit 21af502184
53 changed files with 175 additions and 16588 deletions

View File

@@ -52,12 +52,10 @@ class TestSeriesAppInitialization:
@patch('src.core.SeriesApp.Loaders')
@patch('src.core.SeriesApp.SerieScanner')
@patch('src.core.SeriesApp.SerieList')
@patch('src.core.services.nfo_factory.get_nfo_factory')
@patch('src.core.SeriesApp.settings')
def test_init_uses_config_fallback_for_nfo_service(
self,
mock_settings,
mock_get_factory,
mock_serie_list,
mock_scanner,
mock_loaders,
@@ -66,16 +64,8 @@ class TestSeriesAppInitialization:
test_dir = "/test/anime"
mock_settings.tmdb_api_key = None
mock_factory = Mock()
mock_service = Mock()
mock_factory.create.return_value = mock_service
mock_get_factory.return_value = mock_factory
app = SeriesApp(test_dir)
assert app.nfo_service is mock_service
mock_get_factory.assert_called_once()
class TestSeriesAppSearch:
"""Test search functionality."""