diff --git a/docs/instructions.md b/docs/instructions.md index ce2ac99..f3c78a1 100644 --- a/docs/instructions.md +++ b/docs/instructions.md @@ -119,66 +119,13 @@ For each task completed: ## TODO List: -fix: -Failed to load NFO/images for the-dreaming-boy-is-a-realist: No results found for: The Dreaming Boy is a Realist (2023) -╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ -│ /home/lukas/Volume/repo/Aniworld/src/server/services/background_loader_service.py:399 in │ -│ \_load_nfo_and_images │ -│ │ -│ 396 │ │ │ │ -│ 397 │ │ │ # Use existing NFOService to create NFO with all images │ -│ 398 │ │ │ # This reuses all existing TMDB API logic and image downloading │ -│ ❱ 399 │ │ │ nfo_path = await self.series_app.nfo_service.create_tvshow_nfo( │ -│ 400 │ │ │ │ serie_name=task.name, │ -│ 401 │ │ │ │ serie_folder=task.folder, │ -│ 402 │ │ │ │ year=task.year, │ -│ │ -│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ -│ │ db = │ │ -│ │ e = TMDBAPIError('No results found for: The Dreaming Boy is a Realist (2023)') │ │ -│ │ self = │ │ -│ │ task = SeriesLoadingTask( │ │ -│ │ │ key='the-dreaming-boy-is-a-realist', │ │ -│ │ │ folder='The Dreaming Boy is a Realist (2023)', │ │ -│ │ │ name='The Dreaming Boy is a Realist (2023)', │ │ -│ │ │ year=None, │ │ -│ │ │ status=, │ │ -│ │ │ progress={'episodes': True, 'nfo': False, 'logo': False, 'images': False}, │ │ -│ │ │ started_at=datetime.datetime(2026, 1, 19, 19, 37, 20, 540721, │ │ -│ │ tzinfo=datetime.timezone.utc), │ │ -│ │ │ completed_at=None, │ │ -│ │ │ error=None │ │ -│ │ ) │ │ -│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ -│ │ -│ /home/lukas/Volume/repo/Aniworld/src/core/services/nfo_service.py:112 in create_tvshow_nfo │ -│ │ -│ 109 │ │ │ search_results = await self.tmdb_client.search_tv_show(serie_name) │ -│ 110 │ │ │ │ -│ 111 │ │ │ if not search_results.get("results"): │ -│ ❱ 112 │ │ │ │ raise TMDBAPIError(f"No results found for: {serie_name}") │ -│ 113 │ │ │ │ -│ 114 │ │ │ # Find best match (consider year if provided) │ -│ 115 │ │ │ tv_show = self.\_find_best_match(search_results["results"], serie_name, year) │ -│ │ -│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ -│ │ download_fanart = True │ │ -│ │ download_logo = True │ │ -│ │ download_poster = True │ │ -│ │ folder_path = PosixPath('/mnt/server/serien/Serien/The Dreaming Boy is a Realist │ │ -│ │ (2023)') │ │ -│ │ search_results = {'page': 1, 'results': [], 'total_pages': 1, 'total_results': 0} │ │ -│ │ self = │ │ -│ │ serie_folder = 'The Dreaming Boy is a Realist (2023)' │ │ -│ │ serie_name = 'The Dreaming Boy is a Realist (2023)' │ │ -│ │ year = None │ │ -│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ -╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ -TMDBAPIError: No results found for: The Dreaming Boy is a Realist (2023) +All issues resolved! -2026-01-19 20:37:37 [debug ] Message broadcast failed_count=0 message_type=series_loading_update recipient_count=0 -2026-01-19 20:37:37 [info ] Successfully loaded all data for series: the-dreaming-boy-is-a-realist -2026-01-19 20:37:37 [info ] Processing loading task for series: bel-blatt -2026-01-19 20:37:37 [debug ] Message broadcast failed_count=0 message_type=series_loading_update recipient_count=0 -INFO: Creating NFO for Übel Blatt (2025) (year: None) +### Recently Completed: +- ✅ Fixed async generator exception handling in `get_optional_database_session` +- ✅ Fixed NFO service year extraction from series names (e.g., "Series Name (2023)") +- ✅ Added logic to skip NFO creation if NFO already exists +- ✅ Added database update when existing NFOs are found +- ✅ Added comprehensive unit tests for all fixes + +--- \ No newline at end of file