[Bug]: Scrobbler scrobbles on application start, even though song doesn't play #1483

Open
opened 2023-12-03 09:04:44 +00:00 by Destroy666x · 5 comments
Destroy666x commented 2023-12-03 09:04:44 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.0.2

What operating system are you using?

Windows

Operating System Version

Windows 10 10.0.19045

What arch are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

  1. Enable Last.fm scrobbling
  2. Enable autostart with no autoplay
  3. Scrobbler scrobbles the non-playing song on launch:
    image

Expected Behavior

It should not scrobble the non-playing song.

Actual Behavior

It scrobbles it

Enabled plugins

last.fm
disable-autoplay
The rest shouldn't matter

Additional Information

No response

### Preflight Checklist - [X] I use the latest version of YouTube Music (Application). - [X] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. - [X] I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** ### YouTube Music (Application) Version 3.0.2 ### What operating system are you using? Windows ### Operating System Version Windows 10 10.0.19045 ### What arch are you using? x64 ### Last Known Working YouTube Music (Application) version _No response_ ### Reproduction steps 1. Enable Last.fm scrobbling 2. Enable autostart with no autoplay 3. Scrobbler scrobbles the non-playing song on launch: ![image](https://github.com/th-ch/youtube-music/assets/3606072/7c9776be-676c-449c-b4f0-ba93003df8ac) ### Expected Behavior It should not scrobble the non-playing song. ### Actual Behavior It scrobbles it ### Enabled plugins last.fm disable-autoplay The rest shouldn't matter ### Additional Information _No response_
Owner

May be unrelated, but no song data is passed if I play/pause the song from my previous session.
I'd need to change the song for song data to appear...

Also I can't repro the bug of this issue, the function responsible for scrobbling is not even called unless I reach half the song's duration or change the song.

image

in the screenshot, what you see is the half-duration point

PS: I don't have a last-fm account, so I merely commented out the code that does the API calls and added a log.

May be unrelated, but no song data is passed if I play/pause the song from my previous session. I'd need to change the song for song data to appear... Also I can't repro the bug of this issue, the function responsible for scrobbling is not even called unless I reach half the song's duration or change the song. ![image](https://github.com/th-ch/youtube-music/assets/53124886/2f1665b7-8a13-4f43-8844-b48c980aff8d) in the screenshot, what you see is the half-duration point PS: I don't have a last-fm account, so I merely commented out the code that does the API calls and added a log.
Destroy666x commented 2023-12-18 13:50:44 +00:00 (Migrated from github.com)

A setting controlling how much of the song needs to play would be nice in general, but the problem is it's not played at all in theory, so the bug is either:

  • song "playing" in the back without any sound output
  • data sent to last.fm for a different reason than scrobbling
A setting controlling how much of the song needs to play would be nice in general, but the problem is it's not played at all in theory, so the bug is either: - song "playing" in the back without any sound output - data sent to last.fm for a different reason than scrobbling
JellyBrick commented 2023-12-18 14:11:15 +00:00 (Migrated from github.com)

Is this reproducible in 3.1.1?

Is this reproducible in 3.1.1?
Destroy666x commented 2023-12-18 14:14:16 +00:00 (Migrated from github.com)

I'm on 3.1.0 now, but I'll check once I upgrade

I'm on 3.1.0 now, but I'll check once I upgrade
Destroy666x commented 2023-12-23 22:36:03 +00:00 (Migrated from github.com)

Nothing changed in that version:
image

Nothing changed in that version: ![image](https://github.com/th-ch/youtube-music/assets/3606072/03cffe05-0beb-4efe-8d02-3b73df5535e9)
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#1483
No description provided.