This commit is contained in:
@@ -96,11 +96,11 @@ async def get_movies_list(dependencies: dict,
|
||||
params.append(source_filter)
|
||||
|
||||
if search:
|
||||
where_conditions.append("(imdb_id LIKE %s OR path LIKE %s)")
|
||||
where_conditions.append("(imdb_id ILIKE %s OR path ILIKE %s)")
|
||||
params.extend([f"%{search}%", f"%{search}%"])
|
||||
|
||||
if imdb_search:
|
||||
where_conditions.append("imdb_id LIKE %s")
|
||||
where_conditions.append("imdb_id ILIKE %s")
|
||||
params.append(f"%{imdb_search}%")
|
||||
|
||||
where_clause = " AND ".join(where_conditions) if where_conditions else "1=1"
|
||||
@@ -165,11 +165,11 @@ async def get_tv_series_list(dependencies: dict,
|
||||
having_conditions = []
|
||||
|
||||
if search:
|
||||
where_conditions.append("(s.imdb_id LIKE %s OR s.path LIKE %s)")
|
||||
where_conditions.append("(s.imdb_id ILIKE %s OR s.path ILIKE %s)")
|
||||
params.extend([f"%{search}%", f"%{search}%"])
|
||||
|
||||
if imdb_search:
|
||||
where_conditions.append("s.imdb_id LIKE %s")
|
||||
where_conditions.append("s.imdb_id ILIKE %s")
|
||||
params.append(f"%{imdb_search}%")
|
||||
|
||||
if source_filter:
|
||||
|
||||
Reference in New Issue
Block a user