Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect scrobbling with Last.fm #958

Closed
1 task done
gebbet opened this issue Dec 23, 2023 · 2 comments
Closed
1 task done

Incorrect scrobbling with Last.fm #958

gebbet opened this issue Dec 23, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@gebbet
Copy link

gebbet commented Dec 23, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Song names, artists are somehow scrobbled incorrectly to Last.fm, even if the names are correct.

For example I have listened "Illuminate - Sub Focus & Wilkinson" 21 times from Spotify so far and the song has 190k total listens. However, when I listen with Spotube, it is scrobbled as "Illuminate - Sub Focus & Wilkinson" but on Last.fm it is displayed as I have listened to the song only once and it has only 1034 total listens.

This applies to all songs I have listened so far; while the names are same, it is as if I am listening the songs for the first time. I am not sure what is causing this but I feel like it has something to do with the way Spotube handles tags (or the actual song source is not Spotify as one of the songs from my playlist has a different ending somehow); it is not identical to Spotify apparently. By the way, I have logged in with Spotify premium.

I just wanted to mention this but please disregard it if this is the expected behaviour.

Expected Behavior

The songs scrobbled to last.fm from Spotube should match with the ones that are scrobbled with Spotify.

Steps to reproduce

  1. Listen a song with Spotify
  2. Check the scrobbled songs page & stats on Last.fm
  3. Listen the same song with Spotube
  4. Check Last.fm to see that the pages & stats mismatch

Operating System

Wİndows 10

Spotube version

v3.3.0

Installation source

GitHub Releases (Binary)

Additional information

No response

@gebbet gebbet added the bug Something isn't working label Dec 23, 2023
@KRTirtho
Copy link
Owner

I see the problem here,

await state?.scrobblenaut.track.scrobble(
artist: TypeConversionUtils.artists_X_String(track.artists!),
track: track.name!,
album: track.album!.name!,
chosenByUser: true,
duration: track.duration,
timestamp: DateTime.now().toUtc(),
trackNumber: track.trackNumber,
);

Here, we're passing all artist's combined name as artist string. But, it looks like we're supposed to only supply the main artist's
name there. Unfortunately, anything related to this wasn't written in the lastfm docs, or if it's written, it went unnoticed.

Thanks for submitting the issue.

@KRTirtho
Copy link
Owner

Fixed in 3.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Deployed
Development

No branches or pull requests

2 participants