fix: remove missing episode from DB and memory after download completes

- Fixed _remove_episode_from_missing_list to also update in-memory
  Serie.episodeDict and refresh series_list
- Added _remove_episode_from_memory helper method
- Enhanced logging for download completion and episode removal
- Added 5 unit tests for missing episode removal
This commit is contained in:
2026-02-26 21:02:08 +01:00
parent 624c0db16e
commit b34ee59bca
3 changed files with 363 additions and 19 deletions

View File

@@ -121,7 +121,7 @@ For each task completed:
---
1. ~~remove gui action button for each card~~
~~<div class="series-actions"><button class="btn btn-sm btn-secondary nfo-view-btn" data-key="he-is-my-master" title="View NFO"><i class="fas fa-eye"></i> View NFO</button><button class="btn btn-sm btn-secondary nfo-refresh-btn" data-key="he-is-my-master" title="Refresh NFO"><i class="fas fa-sync-alt"></i> Refresh</button></div>~~
2. ~~add nfo refresh action for all selected cards~~
~~so a button right next to "Select All" that call update nfo for all selected items~~
1. ~~fix: after download completed remove missing episode~~
~~afer successuflly downloaded a episode remove the missing episode entry from db.~~
~~Check if this is implemented correcly. Implement it if not. add logs so i can check it.~~
**DONE** - Fixed `_remove_episode_from_missing_list` to also update in-memory `Serie.episodeDict` and refresh `series_list`. Added `_remove_episode_from_memory` helper. Enhanced logging throughout. 5 new unit tests added.