update: to imdb and skipped items
Local Docker Build (Dev) / build-dev (push) Successful in 5s

This commit is contained in:
2025-11-04 08:55:06 -05:00
parent 2f0537ef1d
commit 79f292ff8e
3 changed files with 28 additions and 7 deletions
+24 -3
View File
@@ -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"""