feat: add NFO scan after rescan and year caching

- Add nfo_scan_after_rescan config option (default: true)
- Implement year caching in AniworldLoader and EnhancedAniWorldLoader
- Make get_year abstract method in base provider
- Run NFO validation/creation after scheduled rescan completes
- Add _YearDict cache to avoid re-extracting year from HTML
This commit is contained in:
2026-06-05 18:15:41 +02:00
parent 8b21f1243f
commit e74b04c1ee
10 changed files with 839 additions and 35 deletions

View File

@@ -25,6 +25,7 @@ def _loader() -> AniworldLoader:
loader = AniworldLoader.__new__(AniworldLoader)
loader._KeyHTMLDict = {}
loader._EpisodeHTMLDict = {}
loader._YearDict = {}
loader.ANIWORLD_TO = "https://aniworld.to"
loader.DEFAULT_REQUEST_TIMEOUT = 10
loader.session = MagicMock()