feat: harden dedupe runtime and NAS deployment
This commit is contained in:
@@ -28,6 +28,6 @@ def read_metadata(path: Path) -> dict:
|
||||
"sample_rate": int(tag.samplerate) if tag.samplerate else None,
|
||||
"bit_depth": int(tag.bitdepth) if tag.bitdepth else None,
|
||||
})
|
||||
text = " ".join(str(data.get(k) or "") for k in ("title", "album", "file_name"))
|
||||
text = " ".join(str(data.get(k) or "") for k in ("title", "album")) + " " + path.name
|
||||
data["version_flags"] = [m for m in VERSION_MARKERS if re.search(rf"(?<!\w){re.escape(m)}(?!\w)", text, re.I)]
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user