From d0cd88c289d54f170ff7493e7d83af8536c50449 Mon Sep 17 00:00:00 2001 From: xenofem Date: Fri, 29 Mar 2024 13:55:22 -0400 Subject: [PATCH] allow things like [3.jpg, 3.5.jpg] to override the minimum level delta check --- dlibrary/dlibrary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index 310290b..d0c17dc 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -757,7 +757,7 @@ def complete_prefix_number_ordering(entries): cur = unified_indices[i] prev = unified_indices[i-1] for level in range(min(len(cur), len(prev))): - if cur[level] != prev[level]: + if cur[level] != prev[level] and not (cur[level] == 5 and prev[level] == 0): delta = cur[level] - prev[level] min_delta_by_level[level] = min(min_delta_by_level.get(level, delta), delta) if any(delta > 2 for delta in min_delta_by_level.values()):