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
+1 -1
View File
@@ -1 +1 @@
2.10.0-skipped-imdb-edit 2.10.0-skipped-imdb-edit-v2
+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): async def get_movie_date_options(dependencies: dict, imdb_id: str):
"""Get available date options for a movie (Radarr import, digital release, etc.)""" """Get available date options for a movie (Radarr import, digital release, etc.)"""
db = dependencies["db"] db = dependencies["db"]
nfo_manager = dependencies["nfo_manager"]
# Get current movie data # Get current movie data
movie = db.get_movie_dates(imdb_id) movie = db.get_movie_dates(imdb_id)
if not movie: if not movie:
@@ -1499,7 +1498,29 @@ def register_web_routes(app, dependencies):
@app.get("/api/movies/{imdb_id}/date-options") @app.get("/api/movies/{imdb_id}/date-options")
async def api_movie_date_options(imdb_id: str): async def api_movie_date_options(imdb_id: str):
return await get_movie_date_options(dependencies, imdb_id) 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}") @app.delete("/api/movies/{imdb_id}")
async def api_delete_movie(imdb_id: str): async def api_delete_movie(imdb_id: str):
"""Delete a movie from the database""" """Delete a movie from the database"""
+3 -3
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NFOGuard - Database Management</title> <title>NFOGuard - Database Management</title>
<link rel="stylesheet" href="/static/css/styles.css?v=2.10.0-skipped-imdb-edit"> <link rel="stylesheet" href="/static/css/styles.css?v=2.10.0-skipped-imdb-edit-v2">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
</head> </head>
<body> <body>
@@ -12,7 +12,7 @@
<!-- Header --> <!-- Header -->
<header class="app-header"> <header class="app-header">
<div class="header-content"> <div class="header-content">
<h1><i class="fas fa-shield-alt"></i> NFOGuard <span style="font-size: 0.5em; color: #888;">v2.10.0-skipped-imdb-edit</span></h1> <h1><i class="fas fa-shield-alt"></i> NFOGuard <span style="font-size: 0.5em; color: #888;">v2.10.0-skipped-imdb-edit-v2</span></h1>
<p>Database Management & Reporting</p> <p>Database Management & Reporting</p>
</div> </div>
<div class="auth-status" id="auth-status" style="display: none;"> <div class="auth-status" id="auth-status" style="display: none;">
@@ -727,6 +727,6 @@
<!-- Toast Notifications --> <!-- Toast Notifications -->
<div class="toast-container" id="toast-container"></div> <div class="toast-container" id="toast-container"></div>
<script src="/static/js/app.js?v=2.10.0-skipped-imdb-edit"></script> <script src="/static/js/app.js?v=2.10.0-skipped-imdb-edit-v2"></script>
</body> </body>
</html> </html>