From 0a956ca81e839d3e56bcc2aa674444f0cf9756fe Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 25 Apr 2026 20:27:48 -0700 Subject: fix: adjust blocksize only if larger than 4096 --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 714f61b..4ec4935 100644 --- a/main.py +++ b/main.py @@ -35,7 +35,7 @@ def get_audio_issues(path: Path) -> dict: return { "needs_sample_rate_fix": sample_rate > 192000, "needs_bitdepth_fix": bits_per_sample > 24, - "needs_blocksize_fix": max_blocksize != 4096, + "needs_blocksize_fix": max_blocksize > 4096, "sample_rate": sample_rate, "bits_per_sample": bits_per_sample, "max_blocksize": max_blocksize, @@ -170,7 +170,7 @@ def process_file(fp: Path, nolrc: bool) -> str: fp = normalize_loudness(fp) post_blocksize = getattr(FLAC(str(fp)).info, "max_blocksize", 4096) - if post_blocksize != 4096: + if post_blocksize > 4096: log(f" Fixing blocksize -> 4096 via flac CLI") fp = fix_blocksize(fp) -- cgit v1.2.3