Skip to content

Commit

Permalink
Fix ListenBrainz integration
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Jan 6, 2025
1 parent cbd2755 commit 3462874
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 3462874

Please sign in to comment.