backup
This commit is contained in:
parent
281b982abe
commit
ccbd9768a2
@ -107,41 +107,3 @@ For each task completed:
|
||||
---
|
||||
|
||||
## TODO List:
|
||||
|
||||
### Task: Fix Scanner Availability for Series Addition
|
||||
|
||||
**Priority:** High
|
||||
**Status:** ✅ Complete
|
||||
|
||||
#### Problem
|
||||
After adding a series, the targeted scan was being skipped with the message:
|
||||
```
|
||||
INFO: Scanner not directly available, skipping targeted scan for romantic-killer
|
||||
```
|
||||
|
||||
#### Root Cause
|
||||
The code was checking for `series_app.scanner`, but the actual attribute name in SeriesApp is `serie_scanner`.
|
||||
|
||||
#### Changes Made
|
||||
|
||||
1. **Fixed [src/server/api/anime.py](../src/server/api/anime.py)**:
|
||||
- Changed `hasattr(series_app, "scanner")` to `hasattr(series_app, "serie_scanner")`
|
||||
- Changed `series_app.scanner.scan_single_series()` to `series_app.serie_scanner.scan_single_series()`
|
||||
- Updated fallback message to be a warning instead of info
|
||||
|
||||
2. **Fixed [tests/api/test_anime_endpoints.py](../tests/api/test_anime_endpoints.py)**:
|
||||
- Changed `self.scanner = FakeScanner()` to `self.serie_scanner = FakeScanner()`
|
||||
- Added comment explaining the attribute name matches SeriesApp
|
||||
|
||||
#### Test Results
|
||||
- ✅ All 9 add_series endpoint tests passing
|
||||
- ✅ Scanner is now correctly detected and called
|
||||
- ✅ Targeted scanning works when adding series
|
||||
|
||||
#### Expected Behavior After Fix
|
||||
When adding a series, you should now see:
|
||||
```
|
||||
INFO: Targeted scan completed for romantic-killer: found X missing episodes
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user