diff --git a/app/api/scenes.py b/app/api/scenes.py index cd1adae..c0beb20 100644 --- a/app/api/scenes.py +++ b/app/api/scenes.py @@ -379,7 +379,14 @@ def list_scenes( for _bl_clause in blacklist_clauses(session, device_id): base = base.where(_bl_clause) - if min_duration_sec is not None: + # `min_duration_sec=0` znaczy "bez progu", a NIE `duration_sec >= 0`. To rozroznienie + # jest tu istotne, bo w SQL NULL nie przechodzi ZADNEGO porownania: przy `>= 0` scena + # o NIEZNANEJ dlugosci wypadala tak samo jak dziesieciosekundowy smiec. Dla serwisow, + # ktore dlugosci nie podaja w ogole (hentaimama, javflix, supjav, hentaigasm, + # hentaiplay, xanimeporn maja 100% NULL), lista wychodzila PUSTA, mimo ze wejscie w + # konkretny serwis jest jawna prosba usera o jego zawartosc. Prog > 0 dalej odcina + # NULL-e swiadomie, bo tam filtrujemy smieci w glownym feedzie. + if min_duration_sec: base = base.where(Scene.duration_sec >= min_duration_sec) if max_duration_sec is not None: base = base.where(Scene.duration_sec <= max_duration_sec) @@ -409,7 +416,7 @@ def list_scenes( _is_pure_default = ( not include_stubs and not q and not studio_slug_list and not tag_slug_list and not perf_id_strings and origin is None and has_playback is None - and min_duration_sec is None + and not min_duration_sec and max_duration_sec is None and released_within_days is None and min_quality_p is None and not jav and vertical is None )