From 346287417a778eec9ef3cd654460d8a9f3c8dc9b Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Mon, 6 Jan 2025 17:02:23 +0100 Subject: [PATCH] Fix ListenBrainz integration --- src/tauon/t_modules/t_main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tauon/t_modules/t_main.py b/src/tauon/t_modules/t_main.py index d5a99aa8f..a1bd64219 100644 --- a/src/tauon/t_modules/t_main.py +++ b/src/tauon/t_modules/t_main.py @@ -4617,7 +4617,7 @@ def in_get(key, tags): tags).decode() if "----:com.apple.iTunes:MusicBrainz Artist Id" in tags: nt.misc["musicbrainz_artistids"] = [x.decode() for x in - tags.get("----:com.apple.iTunes:MusicBrainz Artist Id")] + tags.get("----:com.apple.iTunes:MusicBrainz Artist Id")] elif type(audio.tags) == mutagen.id3.ID3: @@ -7285,7 +7285,7 @@ def listen_full(self, track_object: TrackClass, time) -> bool: if prefs.scrobble_hold is True: return True if prefs.lb_token is None: - show_message(_("ListenBrains is enabled but there is no token."), _("How did this even happen."), mode="error") + show_message(_("ListenBrainz is enabled but there is no token."), _("How did this even happen."), mode="error") title = track_object.title album = track_object.album @@ -7334,7 +7334,7 @@ def listen_playing(self, track_object: TrackClass) -> None: if prefs.scrobble_hold is True: return if prefs.lb_token is None: - show_message(_("ListenBrains is enabled but there is no token."), _("How did this even happen."), mode="error") + show_message(_("ListenBrainz is enabled but there is no token."), _("How did this even happen."), mode="error") title = track_object.title album = track_object.album artist = get_artist_strip_feat(track_object) @@ -7365,7 +7365,7 @@ def listen_playing(self, track_object: TrackClass) -> None: if track_object.track_number: try: - additional = str(int(track_object.track_number)) + additional["tracknumber"] = str(int(track_object.track_number)) except Exception: logging.exception("Error trying to get track_number")