diff --git a/VERSION b/VERSION index 73462a5..f225a78 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.5.1 +2.5.2 diff --git a/api/web_routes.py b/api/web_routes.py index 1df7d10..5a0accc 100644 --- a/api/web_routes.py +++ b/api/web_routes.py @@ -82,9 +82,15 @@ async def get_movies_list(dependencies: dict, if has_date is not None: if has_date: - where_conditions.append("dateadded IS NOT NULL AND dateadded != ''") + if db.db_type == "postgresql": + where_conditions.append("dateadded IS NOT NULL") + else: + where_conditions.append("dateadded IS NOT NULL AND dateadded != ''") else: - where_conditions.append("(dateadded IS NULL OR dateadded = '')") + if db.db_type == "postgresql": + where_conditions.append("dateadded IS NULL") + else: + where_conditions.append("(dateadded IS NULL OR dateadded = '')") if source_filter: where_conditions.append("source = ?") diff --git a/processors/movie_processor.py b/processors/movie_processor.py index ca5dd86..85db39e 100644 --- a/processors/movie_processor.py +++ b/processors/movie_processor.py @@ -190,7 +190,7 @@ class MovieProcessor: if not has_video: _log("WARNING", f"No video files found in: {movie_path}") self.db.upsert_movie_dates(imdb_id, None, None, None, False) - return + return "processed" # TIER 1: Check database first (fastest - local lookup) existing = self.db.get_movie_dates(imdb_id)