Skip to content

Commit

Permalink
Force comparison of MBID (#1370)
Browse files Browse the repository at this point in the history
  • Loading branch information
MelHarbour authored Jun 17, 2024
1 parent 266b2e3 commit 87b2ea0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions music_assistant/server/helpers/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def compare_track(
# return early on exact item_id match
if compare_item_ids(base_item, compare_item):
return True
# return early on MBID match to avoid issues with ISRC
# (https://github.com/music-assistant/hass-music-assistant/issues/2316)
if base_item.mbid and compare_item.mbid:
return base_item.mbid == compare_item.mbid
# return early on (un)matched external id
external_id_match = compare_external_ids(base_item.external_ids, compare_item.external_ids)
if external_id_match is not None:
Expand Down

0 comments on commit 87b2ea0

Please sign in to comment.