Gust4Oliveira / Last.fm-Discord-Rich-Presence

Script that catch your listening status from Last.fm and shares as your discord game activity (Discord Rich Presence)
MIT License
55 stars 8 forks source link

Doesn't show the actual song artist #3

Closed flickur closed 3 years ago

flickur commented 3 years ago

Hi,

Noticed the script only shows song title and album artist + album. Often times be it a collaboration album etc. the album artist is not the same as song artist which results in misleading info.

Gust4Oliveira commented 3 years ago

Hello, all right, i understand the problem that you are facing, it can be related to some misleading information on the song metadata at last.fm but i have to check it. Can you provide me a album that you notice this behavior so i can analize it and seek for a fix?

flickur commented 3 years ago

It happens with every song where album artist is different to song artist. "Dash Berlin - United Destination 2010" for example is the album i'm listening to now.

Gust4Oliveira commented 3 years ago

Okay, i'll take a look.

Gust4Oliveira commented 3 years ago

I tried to reproduce the problem using spotify and the album that you mentioned. I didn't face the issue you mentioned, but the artist info isn't complete, only the first artist of the track is showed. As you can see on the following images: image image This happened due to incomplete metadata of the track on Spotify servers, on front end we see all artists, but the song it self doesn't have this data, this is pretty common using spotify.

Trying again with the same album but local, i didn't faced the issue. Please check if in your profile at last.fm the tracks scrobbled are with the same behaviour, if yes, there is a problem on the scrobbler that you are using or with the metadata of your songs.

flickur commented 3 years ago

Listening local files with foobar, metadata is correct and it's fine on last.fm. Here is my track metadata: image

here's how it's on last.fm image

and here's how it's on discord image

as you can see it's missing the song artist on the discord rich presence.

Gust4Oliveira commented 3 years ago

All right, i checked the lastfm library used and i didn't find any alternative to get the artist and avoid this behaviour, unfortunately thats beyond the script and hould need changes in the library if last.fm provides any alternative in their API. Right now the app uses Pylast library, the recommended API from last.fm it self for python.