sane-tag-music: strip non-breaking spaces from metadata
This commit is contained in:
@@ -317,7 +317,8 @@ class Tags:
|
|||||||
|
|
||||||
def trim_fields(self) -> None:
|
def trim_fields(self) -> None:
|
||||||
def trim(field: list[str]):
|
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 = []
|
unique = []
|
||||||
for i in stripped:
|
for i in stripped:
|
||||||
if i not in unique:
|
if i not in unique:
|
||||||
|
Reference in New Issue
Block a user