From bee438d20fa3d76a63c4acf477a052703671c3e2 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 22 Feb 2025 12:00:34 +0100 Subject: [PATCH] Fix small typo in tag parsing --- music_assistant/helpers/tags.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/music_assistant/helpers/tags.py b/music_assistant/helpers/tags.py index 590a1dc1..f5f0fe64 100644 --- a/music_assistant/helpers/tags.py +++ b/music_assistant/helpers/tags.py @@ -533,10 +533,10 @@ def parse_tags_mutagen(input_file: str) -> dict[str, Any]: result["artistsort"] = tags["TSOP"].text if "TSO2" in tags: result["albumartistsort"] = tags["TSO2"].text - if "TSOT" in tags: - result["titlesort"] = tags["TSOT"].text - if "TSOA" in tags: - result["albumsort"] = tags["TSOA"].text + if tags.get("TSOT"): + result["titlesort"] = tags["TSOT"].text[0] + if tags.get("TSOA"): + result["albumsort"] = tags["TSOA"].text[0] del tags return result -- 2.34.1