NextFire / apple-music-discord-rpc

🎵 Discord Rich Presence Client for the macOS Apple Music app and iTunes
MIT License
559 stars 37 forks source link

Fetch correct album infos for albums that contain the artist name and/or have extra details in parentheses #45

Closed alexanderbira closed 1 year ago

alexanderbira commented 1 year ago

Currently, if you listen to an album with the same name as the artist (e.g. "Queens of the Stone Age" by "Queens of the Stone Age"), the album details that appear on your profile may be from a different album by the same band. I fixed this by fetching all the artist's albums if the album name contains the artist name, and then searching through the results to find the album which has the correct name.

If you listen to an album with extra details in parentheses (e.g. "Era Vulgaris (Bonus Track Version)" by "Queens of the Stone Age"), the album details may not be found. I fixed this by searching for the album without the part in parentheses if the initial search yields no results.

NextFire commented 1 year ago

LGTM, will merge if nothing else to add. Thank you!