Bug 399249 - Add support for scrobbling to last.fm
Summary: Add support for scrobbling to last.fm
Status: CONFIRMED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 21.08.1
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-30 18:37 UTC by Josep Febrer
Modified: 2023-04-30 20:56 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josep Febrer 2018-09-30 18:37:39 UTC
It would be nice if Elisa could do scrobbling to last.fm.

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.80
KDE Frameworks Version: 5.50
Qt Version: 5.11.1
Comment 1 Matthieu Gallien 2018-10-04 19:07:55 UTC
I would like to also add support for https://listenbrainz.org/ .
Comment 2 Infanta Xavier 2019-10-13 10:05:35 UTC
Would be great if it supported scrobbling to Libre.fm as well. Thanks
Comment 3 Eric Mesa 2019-12-29 19:04:29 UTC
I would also like a vote to ability to Scrobble to any of these services I happen to use last.fm - I think they use the same API so it's a matter of picking a service and entering creds, right?

This would allow me to go from Amarok to Elisa.
Comment 4 soredake 2020-10-30 11:45:24 UTC
Any progress on this?
Comment 5 renato ricco 2021-02-17 01:05:12 UTC
Any news or a way to help on this feature?
My expertise is on JS but I wanna help if possible.
Comment 6 Eric Mesa 2021-09-11 14:06:56 UTC
still an issue on 21.08
Comment 7 Luca Cavagna 2022-03-21 16:01:28 UTC
Interesting feature I wish it was implemented because the player is really neat. The lack of this feature is the only thing holding me back from using it.
Comment 8 Ali 2022-04-11 14:22:33 UTC
same as others, Elisa not having official scrobbling support with no clear workarounds is pretty much the only thing that prevents me from switching to it, would be much appreciated if we saw this feature confirmed! <3
Comment 9 renato ricco 2022-04-11 15:39:14 UTC
For those willing to scrobble on elisa, a workaround is use rescrobbled.
Comment 10 Gerald Cox 2022-08-05 23:22:36 UTC
Rescrobbled works perfect as a workaround.  There is also mpris-scrobbler, but at the moment it has a few bugs that have just been languishing with no apparent interest to address, so I would recommend rescrobbled.  I suppose the question is whether the direction is to relegate such things as scrobbling functionality to MPRIS apps.  If so, that should be noted here and this ticket closed.
Comment 11 Wyatt Childers 2022-08-07 07:34:33 UTC
(In reply to Gerald Cox from comment #10)
> Rescrobbled works perfect as a workaround.  There is also mpris-scrobbler,
> but at the moment it has a few bugs that have just been languishing with no
> apparent interest to address, so I would recommend rescrobbled.  I suppose
> the question is whether the direction is to relegate such things as
> scrobbling functionality to MPRIS apps.  If so, that should be noted here
> and this ticket closed.

I'm not fundamentally opposed to a generic KDE/Plasma MPRIS scrobbler instead of something builtin to Elisa. However, MPRIS is used for a lot of things beyond music, so there would need to be some way to distinguish Elisa music from say, a random video in Firefox.

Maybe that's just a configuration dialog that lets certain players be ignored, or maybe there's enough metadata in MPRIS to determine whether something is music or not?
Comment 12 Gerald Cox 2022-08-07 17:17:07 UTC
(In reply to Wyatt Childers from comment #11)
> (In reply to Gerald Cox from comment #10)
> I'm not fundamentally opposed to a generic KDE/Plasma MPRIS scrobbler
> instead of something builtin to Elisa. However, MPRIS is used for a lot of
> things beyond music, so there would need to be some way to distinguish Elisa
> music from say, a random video in Firefox.
> 
> Maybe that's just a configuration dialog that lets certain players be
> ignored, or maybe there's enough metadata in MPRIS to determine whether
> something is music or not?

TLDR: Not really an issue

rescrobbled only accepts one mpris connection at a time, and it needs to be active.  In other words, if you have a browser open, it won't connect unless it is playing something.  Additionally, I've found that playing from Chrome or Firefox doesn't work.  It fails with "API error (400): required field track_metadata.artist_name is empty." so apparently out of the box browsers aren't compatible and require something else to get them working for scrobbling purposes.  You would run into issues if you were playing Youtube music through your browser and then started elisa-player.  Youtube would connect to rescrobbled but would fail, because it doesn't send the required info to rescrobbled.  However, it would be connected to rescrobbled until it was stopped.  If you at the same time started elisa, it wouldn't be able to connect to rescrobbled because the browser would be taking the active slot.  However, once the player on the browser was stopped, elisa would automatically grab it.

Also, music players don't just by default support scrobbling by mpris.  They have to be sending the correct information.  QMMP for example does this by having a plugin that specifically supports mpris scrobbling.  Additionally, QMMP has it's own standalone scrobbling plugin.  

I'm not against elisa having it's own standalone scrobbling plugin.  I was just thinking that maybe the developer just intended to offload this to mpris - he did build in full mpris support which does support scrobbling.  Maybe he wanted to just concentrate on core functionality and keep elisa focused on that.  If that was his intent, that is perfectly fine with me.  I was just thinking if that is the case, he should just close this ticket so people understand the path forward.

I will mention upstream to rescrobbled the weird situation of a browser grabbing control of rescrobbled.  I'm not sure what can be done about that however.  It appears that the browser has limited mpris capability, not enough to scrobble, but enough to take control of rescrobbled.  Again, that's not a huge problem, because when you stop playback, it releases.  I don't think you should just ban all browsers either, because there may be an extension or something that allows it to use rescrobbled correctly.  

It appears that when mpris support was added to the browsers, they weren't considering scrobbling at all, just controlling volume, etc.
Comment 13 Gerald Cox 2022-08-07 17:30:31 UTC
I added a discussion post upstream for rescrobbled here:  https://github.com/InputUsername/rescrobbled/discussions/79