sane-tag-music: strip non-breaking spaces from metadata

This commit is contained in:
2024-07-13 05:00:03 +00:00
parent deb355d960
commit eeab1d9fda

View File

@@ -317,7 +317,8 @@ class Tags:
def trim_fields(self) -> None:
def trim(field: list[str]):
stripped = [ i.strip() for i in field ]
# \u200b is non-breaking space
stripped = [ i.strip().replace('\u200b', '') for i in field ]
unique = []
for i in stripped:
if i not in unique: