From bedebabe38a272542010b541257e34aeb1885e42 Mon Sep 17 00:00:00 2001 From: riffsmith3 <302340001+riffsmith3@users.noreply.github.com> Date: Sun, 12 Jul 2026 08:43:09 +0800 Subject: [PATCH] Update scan.py Skip hidden (dot-prefixed) directories in the library scan --- lib/scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scan.py b/lib/scan.py index 820cb50e..9aa9338c 100644 --- a/lib/scan.py +++ b/lib/scan.py @@ -135,7 +135,7 @@ def background_scan(): # Both are kept out of the scan; _resolve_dlc_path still loads them by # path for playback. def _is_excluded_from_library(p: Path) -> bool: - return "tutorials-builtin" in p.parts or "minigames-builtin" in p.parts + return "tutorials-builtin" in p.parts or "minigames-builtin" in p.parts or any(part.startswith(".") for part in p.relative_to(dlc).parts) # Sloppaks: match both file (zip) and directory form, across both the # `.feedpak` and legacy `.sloppak` suffixes. _cands = sorted(p for ext in sloppak_mod.SONG_EXTS for p in dlc.rglob(f"*{ext}"))