From 79f292ff8e5fccebb696922483d3075753f833b9 Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Tue, 4 Nov 2025 08:55:06 -0500 Subject: [PATCH] update: to imdb and skipped items --- VERSION | 2 +- api/web_routes.py | 27 ++++++++++++++++++++++++--- nfoguard-web/static/index.html | 6 +++--- 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index 6791995..567de8f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.10.0-skipped-imdb-edit +2.10.0-skipped-imdb-edit-v2 diff --git a/api/web_routes.py b/api/web_routes.py index 5d19dcf..5d73817 100644 --- a/api/web_routes.py +++ b/api/web_routes.py @@ -767,8 +767,7 @@ async def bulk_update_source(dependencies: dict, media_type: str, old_source: st async def get_movie_date_options(dependencies: dict, imdb_id: str): """Get available date options for a movie (Radarr import, digital release, etc.)""" db = dependencies["db"] - nfo_manager = dependencies["nfo_manager"] - + # Get current movie data movie = db.get_movie_dates(imdb_id) if not movie: @@ -1499,7 +1498,29 @@ def register_web_routes(app, dependencies): @app.get("/api/movies/{imdb_id}/date-options") async def api_movie_date_options(imdb_id: str): return await get_movie_date_options(dependencies, imdb_id) - + + @app.get("/api/debug/movie/{imdb_id}/raw") + async def api_debug_movie_raw(imdb_id: str): + """Get raw database data for a movie for debugging""" + db = dependencies["db"] + + try: + movie = db.get_movie_dates(imdb_id) + + if not movie: + raise HTTPException(status_code=404, detail="Movie not found") + + return { + "success": True, + "raw_data": movie + } + + except HTTPException: + raise + except Exception as e: + print(f"❌ Error getting movie debug data: {e}") + raise HTTPException(status_code=500, detail=f"Failed to get debug data: {str(e)}") + @app.delete("/api/movies/{imdb_id}") async def api_delete_movie(imdb_id: str): """Delete a movie from the database""" diff --git a/nfoguard-web/static/index.html b/nfoguard-web/static/index.html index 77e3b0b..56c8d33 100644 --- a/nfoguard-web/static/index.html +++ b/nfoguard-web/static/index.html @@ -4,7 +4,7 @@ NFOGuard - Database Management - + @@ -12,7 +12,7 @@
-

NFOGuard v2.10.0-skipped-imdb-edit

+

NFOGuard v2.10.0-skipped-imdb-edit-v2

Database Management & Reporting