feat: add support for Maintainarr webhook
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
2025-10-24 16:30:08 -04:00
parent f6c5ccd2b6
commit e054c945ff
4 changed files with 397 additions and 1 deletions
+23
View File
@@ -441,6 +441,29 @@ class NFOGuardDatabase:
return deleted_count > 0
def delete_series(self, imdb_id: str) -> bool:
"""
Delete a specific series from the database
Args:
imdb_id: Series IMDb ID
Returns:
True if series was deleted, False if not found
"""
with self.get_connection() as conn:
cursor = conn.cursor()
cursor.execute("""
DELETE FROM series
WHERE imdb_id = %s
""", (imdb_id,))
deleted_count = cursor.rowcount
conn.commit()
return deleted_count > 0
def delete_orphaned_movies(self) -> List[Dict]:
"""
Find and delete movies that don't have corresponding video files on disk