From: Marcel van der Veldt Date: Sat, 22 Feb 2025 11:00:34 +0000 (+0100) Subject: Fix small typo in tag parsing X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=bee438d20fa3d76a63c4acf477a052703671c3e2;p=music-assistant-server.git Fix small typo in tag parsing --- 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