arkq / cmusfm

Last.fm standalone scrobbler for the cmus music player
GNU General Public License v3.0
232 stars 5 forks source link

Libre.fm support #10

Closed MunifTanjim closed 7 years ago

MunifTanjim commented 7 years ago

Is there any plan for supporting Libre.fm?

arkq commented 7 years ago

I've tried to find some libre.fm API documentation, however it seems, that there is none...

On the libre.fm wiki, I've found that the API is supposed to be compatible with the last.fm one. You can try to change SCROBBLER_URL and SCROBBLER_USERAUTH_URL definitions in the src/libscrobbler2.h file (if you know the URL for the libre.fm API) and see if the wiki is right.

I'm not a libre.fm user, so without any documentation there is very little to zero chances, that the libre.fm will be supported in the future.

MunifTanjim commented 7 years ago

Are these what you need?

arkq commented 7 years ago

Yeah, these links are more than enough. I had to be blind, not to spot this wiki page...

It seems, that the API is indeed compatible with last.fm. If there will be no further obstacles, I will try to add configuration for libre.fm.

Many thanks for these links.

MunifTanjim commented 7 years ago

Eagerly waiting for it :smile:

And thanks for creating and maintaining cmusfm :+1:

Anyway, the reason for my using Libre.fm is that, it works sort of like a backup. Libre.fm can be set to forward scrobbles to Last.fm (and self-hosted GNU FM, if anyone wishes). So, the users can have same data everywhere just by scrobbling to Libre.fm!

arkq commented 7 years ago

Now you should be able to change scrobbling service from last.fm to libre.fm. See the configuration section in the README file for more information.

fwiep commented 6 years ago

@Arkq, thank you for developing this scrobbler and adding Libre.fm support. I cloned the most recent version and installed it according to your instructions. Performed an "init" command, then edited the config URLs to point to Libre.fm. Now when I perform a second "init", it gives me Error: API: Unknown error.

@MunifTanjim, did you succeed in linking cmus to Libre.fm? How did you authenticate?

Can anyone help me, please?

Thanks, Frans-Willem

fwiep commented 6 years ago

I seem to have found my own answer. On this Japanese site, the Libre.fm authentication seems to be explained quite nicely. The first few steps have succeeded already (thanks to an online translator :) ).

Will go and build on this information. Thanks, Frans-Willem