5526ab884a
refactor: restructure core→server, split large entity files into database module
...
- Move src/core/ → src/server/
- Split SerieList.py (531 lines) and series.py (414 lines) into src/server/database/
- Add database/models.py for SQLAlchemy models
- Update all test imports to reflect new structure
- Remove deprecated test files (test_serie_class.py, test_serie_folder_with_year.py)
2026-06-04 21:11:53 +02:00
274f773988
Remove dead NFO CLI code
...
NFO service removed. CLI code no longer functional - strip deprecated commands.
2026-06-04 19:02:08 +02:00
21af502184
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 >
2026-06-04 18:54:31 +02:00
92bd55ada1
chore: apply pending code updates
2026-03-17 11:39:27 +01:00
fb8f0bdbd2
Fix Issue 5: Create NFOServiceFactory for centralized initialization
...
- Created NFOServiceFactory in src/core/services/nfo_factory.py
- Enforces configuration precedence: explicit params > ENV > config.json
- Provides create() and create_optional() methods
- Singleton factory instance via get_nfo_factory()
- Updated 4 files to use factory (nfo.py, SeriesApp.py, series_manager_service.py, nfo_cli.py)
- Fixed test mocks: added ensure_folder_with_year(), corrected dependency test
- Tests: 17/18 NFO passing, 15/16 anime passing
- Resolves Code Duplication 2 (NFO initialization)
2026-01-24 21:52:54 +01:00
1c476003d6
feat: Add 'update' command to NFO CLI tool
...
- New command: python -m src.cli.nfo_cli update
- Updates all existing NFO files with fresh TMDB data
- Optionally re-downloads media files
- Shows progress with success/error count
- Updates task3_status.md to mark update_tvshow_nfo() as complete
2026-01-11 21:11:49 +01:00
36e663c556
feat: Integrate NFO service with series management
...
- Created SeriesManagerService to orchestrate SerieList and NFOService
- Follows clean architecture (core entities stay independent)
- Supports auto-create and update-on-scan based on configuration
- Created CLI tool (src/cli/nfo_cli.py) for NFO management
- Commands: 'scan' (create/update NFOs) and 'status' (check NFO coverage)
- Batch processing with rate limiting to respect TMDB API limits
- Comprehensive error handling and logging
Usage:
python -m src.cli.nfo_cli scan # Create missing NFOs
python -m src.cli.nfo_cli status # Check NFO statistics
2026-01-11 21:02:28 +01:00