[GH-ISSUE #98] Last.fm scrobbling support #67

Closed
opened 2026-02-26 02:32:00 +03:00 by kerem · 31 comments
Owner

Originally created by @ronilaukkarinen on GitHub (Dec 17, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/98

Personally I don't listen music without scrobbling, so why don't you add Last.fm support? That would be awesome!

Originally created by @ronilaukkarinen on GitHub (Dec 17, 2015). Original GitHub issue: https://github.com/koel/koel/issues/98 Personally I don't listen music without scrobbling, so why don't you add Last.fm support? That would be awesome!
kerem 2026-02-26 02:32:00 +03:00
Author
Owner

@etopian commented on GitHub (Dec 17, 2015):

before doing that, how about adding a scrobbling function to the app itself. it would be nice to have a history of everything you have been listening to in the app itself as well.

<!-- gh-comment-id:165525351 --> @etopian commented on GitHub (Dec 17, 2015): before doing that, how about adding a scrobbling function to the app itself. it would be nice to have a history of everything you have been listening to in the app itself as well.
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 17, 2015):

Yeah, with Last.fm there's a lot of possibilities, like in musiccabinet it's used with syncing the favorites with loved tracks, fetching missing cover art, artist info, etc.

But scrobbling support is a start.
Personally not that good at with laravel/vue/js so not eligible for making a pull request.

<!-- gh-comment-id:165526332 --> @ronilaukkarinen commented on GitHub (Dec 17, 2015): Yeah, with Last.fm there's a lot of possibilities, like in [musiccabinet](https://github.com/hakko/subsonic) it's used with syncing the favorites with loved tracks, fetching missing cover art, artist info, etc. But scrobbling support is a start. Personally not that good at with laravel/vue/js so not eligible for making a pull request.
Author
Owner

@phanan commented on GitHub (Dec 17, 2015):

why don't you add Last.fm support?

how about adding a scrobbling function to the app itself.

Sounds like great ideas. Will definitely look into these, even though I don't use scrobbling at all.

<!-- gh-comment-id:165533297 --> @phanan commented on GitHub (Dec 17, 2015): > why don't you add Last.fm support? > > how about adding a scrobbling function to the app itself. Sounds like great ideas. Will definitely look into these, even though I don't use scrobbling at all.
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 17, 2015):

To defend the idea; many users still scrobble, personally been scrobbling over 10 years now. Scrobbling is so popular that even Spotify had to add native support back in the early days.

Anyway, even if you don't use scrobbling, Last.fm API provides many useful features like song, artist and listening information etc. For example "top tracks" is a killer in Subsonic.

This issue is about plain scrobbling though which would be groundbreaking already by itself.

<!-- gh-comment-id:165534560 --> @ronilaukkarinen commented on GitHub (Dec 17, 2015): To defend the idea; many users still scrobble, personally been scrobbling over 10 years now. Scrobbling is so popular that even Spotify had to add native support back in the early days. Anyway, even if you don't use scrobbling, Last.fm API provides many useful features like song, artist and listening information etc. For example "top tracks" is a killer in Subsonic. This issue is about plain scrobbling though which would be groundbreaking already by itself.
Author
Owner

@phanan commented on GitHub (Dec 17, 2015):

Yes, sounds convincing. I'll find a timeslot for it.

<!-- gh-comment-id:165535220 --> @phanan commented on GitHub (Dec 17, 2015): Yes, sounds convincing. I'll find a timeslot for it.
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 18, 2015):

Found this, maybe it will help you out. Studying vue/laravel myself, but it's so new to me not sure I can handle it yet. After all it would need Last.fm settings section for user credentials or approving scrobbling via redirect to get access token and that may be to complicated for me at this time.

Something as simple as below would perhaps do, but not sure how to implement it.

$j.post("http://ws.audioscrobbler.com/2.0/";,
{"api_key" : apiKey,
"method" : "Track.updateNowPlaying",
"sk" : $j.cookie("sk"),
"artist" : track.artist,
"track" : track.title,
"api_sig" : $j.md5("api_key" + apiKey + "artist" + track.artist + "methodTrack.updateNowPlayingsk" + $j.cookie("sk") + "track" + track.title + apiSecret)}
);

Very exited about this project. :)

<!-- gh-comment-id:165695066 --> @ronilaukkarinen commented on GitHub (Dec 18, 2015): Found [this](https://github.com/david-sabata/web-scrobbler), maybe it will help you out. Studying vue/laravel myself, but it's so new to me not sure I can handle it yet. After all it would need Last.fm settings section for user credentials or approving scrobbling via redirect to get access token and that may be to complicated for me at this time. Something as simple as below would perhaps do, but not sure how to implement it. ``` javascript $j.post("http://ws.audioscrobbler.com/2.0/";, {"api_key" : apiKey, "method" : "Track.updateNowPlaying", "sk" : $j.cookie("sk"), "artist" : track.artist, "track" : track.title, "api_sig" : $j.md5("api_key" + apiKey + "artist" + track.artist + "methodTrack.updateNowPlayingsk" + $j.cookie("sk") + "track" + track.title + apiSecret)} ); ``` Very exited about this project. :)
Author
Owner

@phanan commented on GitHub (Dec 18, 2015):

Yes, support for Last.fm is almost a certain. One can have only so much time a day though.

<!-- gh-comment-id:165697137 --> @phanan commented on GitHub (Dec 18, 2015): Yes, support for Last.fm is almost a certain. One can have only so much time a day though.
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 18, 2015):

@phanan Did not mean to rush at all, only trying to help out since you mentioned you don't scrobble yourself, I don't expect it to get done or making any demands whatsoever. As an active entrepreneur I know time is a relative subject. :) Thanks for doing this and have a great weekend!

<!-- gh-comment-id:165698669 --> @ronilaukkarinen commented on GitHub (Dec 18, 2015): @phanan Did not mean to rush at all, only trying to help out since you mentioned you don't scrobble yourself, I don't expect it to get done or making any demands whatsoever. As an active entrepreneur I know time is a relative subject. :) Thanks for doing this and have a great weekend!
Author
Owner

@phanan commented on GitHub (Dec 18, 2015):

@ronilaukkarinen Yeah certainly. Can't say I'm any less excited than you ;)

<!-- gh-comment-id:165699098 --> @phanan commented on GitHub (Dec 18, 2015): @ronilaukkarinen Yeah certainly. Can't say I'm any less excited than you ;)
Author
Owner

@mecyborg commented on GitHub (Dec 18, 2015):

@ronilaukkarinen I was going to suggest this. Its a must !

<!-- gh-comment-id:165753792 --> @mecyborg commented on GitHub (Dec 18, 2015): @ronilaukkarinen I was going to suggest this. Its a must !
Author
Owner

@phanan commented on GitHub (Dec 19, 2015):

https://twitter.com/notphanan/status/678073237146742784 ;)

On Fri, Dec 18, 2015 at 7:34 PM, Nikunj Gupta notifications@github.com
wrote:

@ronilaukkarinen https://github.com/ronilaukkarinen I was going to
suggest this. Its a must !


Reply to this email directly or view it on GitHub
https://github.com/phanan/koel/issues/98#issuecomment-165753792.

<!-- gh-comment-id:165947582 --> @phanan commented on GitHub (Dec 19, 2015): https://twitter.com/notphanan/status/678073237146742784 ;) On Fri, Dec 18, 2015 at 7:34 PM, Nikunj Gupta notifications@github.com wrote: > @ronilaukkarinen https://github.com/ronilaukkarinen I was going to > suggest this. Its a must ! > > — > Reply to this email directly or view it on GitHub > https://github.com/phanan/koel/issues/98#issuecomment-165753792.
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 19, 2015):

@phanan Wow, this will be more than expected already. Awesome, man!

<!-- gh-comment-id:165963121 --> @ronilaukkarinen commented on GitHub (Dec 19, 2015): @phanan Wow, this will be more than expected already. Awesome, man!
Author
Owner

@phanan commented on GitHub (Dec 19, 2015):

Following up: https://twitter.com/notphanan/status/678255497640718336.
Those of you who want to live by the edge can pull branch 1.1 and try the new features.
I'm working on scrobbling next. Keep the ideas coming!

<!-- gh-comment-id:166002851 --> @phanan commented on GitHub (Dec 19, 2015): Following up: https://twitter.com/notphanan/status/678255497640718336. Those of you who want to live by the edge can pull branch 1.1 and try the new features. I'm working on scrobbling next. Keep the ideas coming!
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 19, 2015):

@phanan Very nice, will try out 1.1 soon! However, I wish this issue to be reopened because it was originally about scrobbling per se rather than additional Last.fm features, so I'll get notified when the scrobbling will be ready and no duplicate issues will be created. Scrobbling is a more essential feature than info to me and prorably to other scrobblers out there as well. Good job so far anyway!

<!-- gh-comment-id:166020852 --> @ronilaukkarinen commented on GitHub (Dec 19, 2015): @phanan Very nice, will try out 1.1 soon! However, I wish this issue to be reopened because it was originally about _scrobbling_ per se rather than additional Last.fm features, so I'll get notified when the scrobbling will be ready and no duplicate issues will be created. Scrobbling is a more essential feature than info to me and prorably to other scrobblers out there as well. Good job so far anyway!
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 19, 2015):

Updated my keys in .env and then did git branch 1.1 && git checkout 1.1 && git pull origin 1.1 && npm install && composer install. No visible changes. What else do I have to do?

<!-- gh-comment-id:166021527 --> @ronilaukkarinen commented on GitHub (Dec 19, 2015): Updated my keys in `.env` and then did `git branch 1.1 && git checkout 1.1 && git pull origin 1.1 && npm install && composer install`. No visible changes. What else do I have to do?
Author
Owner

@phanan commented on GitHub (Dec 20, 2015):

gulp --production?

<!-- gh-comment-id:166052577 --> @phanan commented on GitHub (Dec 20, 2015): `gulp --production`?
Author
Owner

@phanan commented on GitHub (Dec 20, 2015):

I'll add an upgrade guide once upgrading is an official option.

<!-- gh-comment-id:166055405 --> @phanan commented on GitHub (Dec 20, 2015): I'll add an upgrade guide once upgrading is an official option.
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 20, 2015):

Npm runs it

[13:17:51] Using gulpfile /var/www/html/koel/gulpfile.js
[13:17:51] Starting 'default'...
[13:17:51] Starting 'browserify'...

Fetching Browserify Source Files...
   - resources/assets/js/main.js


Saving To...
   - public/js/main.js

[13:18:00] Finished 'default' after 9.36 s

But ran gulp --production separately now. Maybe misunderstood what's new. I see Artists in left bar but only Lyrics in right.

<!-- gh-comment-id:166110740 --> @ronilaukkarinen commented on GitHub (Dec 20, 2015): Npm runs it ``` [13:17:51] Using gulpfile /var/www/html/koel/gulpfile.js [13:17:51] Starting 'default'... [13:17:51] Starting 'browserify'... Fetching Browserify Source Files... - resources/assets/js/main.js Saving To... - public/js/main.js [13:18:00] Finished 'default' after 9.36 s ``` But ran `gulp --production` separately now. Maybe misunderstood what's new. I see Artists in left bar but only Lyrics in right.
Author
Owner

@phanan commented on GitHub (Dec 20, 2015):

@ronilaukkarinen See this.

Also, the last commit on 1.1 should yield something like this:

image

And scrobbling has been added, as long as you connect to Last.fm:

image

Since the functionalities are still experimental, let me know if it works.

<!-- gh-comment-id:166113199 --> @phanan commented on GitHub (Dec 20, 2015): @ronilaukkarinen See [this](https://github.com/phanan/koel/blob/1.1/.env.example#L20-L22). Also, the last commit on 1.1 should yield something like this: ![image](https://cloud.githubusercontent.com/assets/8056274/11917956/994b6624-a757-11e5-89c2-dced94398672.png) And scrobbling has been added, as long as you connect to Last.fm: ![image](https://cloud.githubusercontent.com/assets/8056274/11917964/fdf058d2-a757-11e5-8b75-d9e7ee3ec751.png) Since the functionalities are still experimental, let me know if it works.
Author
Owner

@phanan commented on GitHub (Dec 20, 2015):

Remember to run ./artisan migrate too.

<!-- gh-comment-id:166113373 --> @phanan commented on GitHub (Dec 20, 2015): Remember to run `./artisan migrate` too.
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 20, 2015):

Yeah, I did those, but no effect. Some cache thing? I had to copy .env to safe place, then run rm -rf /var/www/html/koel, then git clone -b 1.1 git@github.com:phanan/koel.git and copying .env back. Now it works! Strange that the update did not. Some album covers not found, but I guess that can be fixed with resync I presume.

The changes are so cool, thanks a bunch! 👍

<!-- gh-comment-id:166125802 --> @ronilaukkarinen commented on GitHub (Dec 20, 2015): Yeah, I did those, but no effect. Some cache thing? I had to copy .env to safe place, then run `rm -rf /var/www/html/koel`, then `git clone -b 1.1 git@github.com:phanan/koel.git` and copying .env back. Now it works! Strange that the update did not. Some album covers not found, but I guess that can be fixed with resync I presume. The changes are so cool, thanks a bunch! :+1:
Author
Owner

@phanan commented on GitHub (Dec 20, 2015):

@ronilaukkarinen Maybe you can thanks me by recommending some good Finnish heavy metal albums!

<!-- gh-comment-id:166126079 --> @phanan commented on GitHub (Dec 20, 2015): @ronilaukkarinen Maybe you can thanks me by recommending some good Finnish heavy metal albums!
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 20, 2015):

@phanan Always a pleasure! It depends what kind of metal do you like? Try Amorphis for example, you will like it. Very melodic. The newest album is great. The Four Wise Ones is one of my favourites from that new album.

<!-- gh-comment-id:166131700 --> @ronilaukkarinen commented on GitHub (Dec 20, 2015): @phanan Always a pleasure! It depends what kind of metal do you like? Try Amorphis for example, you will like it. Very melodic. The newest album is great. [The Four Wise Ones](https://www.youtube.com/watch?v=-8iCQ1NOER4) is one of my favourites from that new album.
Author
Owner

@phanan commented on GitHub (Dec 20, 2015):

I don't discriminate music – from Nighwish to Sonata Arctica to Ensiferum
and COB and Korpiklaani, I love all of them ;)
Thanks for the recommendation, they sound great indeed!

On Mon, Dec 21, 2015 at 12:02 AM, Roni Laukkarinen <notifications@github.com

wrote:

@phanan https://github.com/phanan Always a pleasure! It depends what
kind of metal do you like? Try Amorphis for example, you will like it. Very
melodic. The newest album is great. The Four Wise Ones
https://www.youtube.com/watch?v=-8iCQ1NOER4 is one of my favourites
from that new album.


Reply to this email directly or view it on GitHub
https://github.com/phanan/koel/issues/98#issuecomment-166131700.

<!-- gh-comment-id:166132975 --> @phanan commented on GitHub (Dec 20, 2015): I don't discriminate music – from Nighwish to Sonata Arctica to Ensiferum and COB and Korpiklaani, I love all of them ;) Thanks for the recommendation, they sound great indeed! On Mon, Dec 21, 2015 at 12:02 AM, Roni Laukkarinen <notifications@github.com > wrote: > > @phanan https://github.com/phanan Always a pleasure! It depends what > kind of metal do you like? Try Amorphis for example, you will like it. Very > melodic. The newest album is great. The Four Wise Ones > https://www.youtube.com/watch?v=-8iCQ1NOER4 is one of my favourites > from that new album. > > — > Reply to this email directly or view it on GitHub > https://github.com/phanan/koel/issues/98#issuecomment-166131700.
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 22, 2015):

Sorry to bump! Want to listen so badly, but if it doesn't scrobble, it doesn't count ;) no rush, just thought to comment to see what's the situation with scrobbling call at this time.

By the way, there is two ways to make scrobbling work, other is that after the song is played, it will be visible in Last.fm, other (preferred) more sophisticated way is to scrobble actually when the song is playing (so we can see "Now playing" indicator in Last.fm). I don't know the exact technique to this, but I've heard it's fairly simple.

<!-- gh-comment-id:166727625 --> @ronilaukkarinen commented on GitHub (Dec 22, 2015): Sorry to bump! Want to listen so badly, but _if it doesn't scrobble, it doesn't count_ ;) no rush, just thought to comment to see what's the situation with scrobbling call at this time. By the way, there is two ways to make scrobbling work, other is that after the song is played, it will be visible in Last.fm, other (preferred) more sophisticated way is to scrobble actually when the song is playing (so we can see "Now playing" indicator in Last.fm). I don't know the exact technique to this, but I've heard it's fairly simple.
Author
Owner

@phanan commented on GitHub (Dec 23, 2015):

Want to listen so badly, but if it doesn't scrobble, it doesn't count ;)

Huh. Have you connected your account from Settings?

By the way, there is two ways to make scrobbling work, other is that
after the song is played, it will be visible in Last.fm, other (preferred)
more sophisticated way is to scrobble actually when the song is playing (so
we can see "Now playing" indicator in Last.fm).

Will definitely look at this. Thanks.

On Wed, Dec 23, 2015 at 4:57 AM, Roni Laukkarinen notifications@github.com
wrote:

Sorry to bump! Want to listen so badly, but if it doesn't scrobble, it
doesn't count
;) no rush, just thought to comment to see what's the
situation with scrobbling call at this time.

By the way, there is two ways to make scrobbling work, other is that after
the song is played, it will be visible in Last.fm, other (preferred) more
sophisticated way is to scrobble actually when the song is playing (so we
can see "Now playing" indicator in Last.fm). I don't know the exact
technique to this, but I've heard it's fairly simple.


Reply to this email directly or view it on GitHub
https://github.com/phanan/koel/issues/98#issuecomment-166727625.

<!-- gh-comment-id:166785164 --> @phanan commented on GitHub (Dec 23, 2015): > Want to listen so badly, but _if it doesn't scrobble, it doesn't count_ ;) Huh. Have you connected your account from Settings? > By the way, there is two ways to make scrobbling work, other is that > after the song is played, it will be visible in Last.fm, other (preferred) > more sophisticated way is to scrobble actually when the song is playing (so > we can see "Now playing" indicator in Last.fm). Will definitely look at this. Thanks. On Wed, Dec 23, 2015 at 4:57 AM, Roni Laukkarinen notifications@github.com wrote: > Sorry to bump! Want to listen so badly, but _if it doesn't scrobble, it > doesn't count_ ;) no rush, just thought to comment to see what's the > situation with scrobbling call at this time. > > By the way, there is two ways to make scrobbling work, other is that after > the song is played, it will be visible in Last.fm, other (preferred) more > sophisticated way is to scrobble actually when the song is playing (so we > can see "Now playing" indicator in Last.fm). I don't know the exact > technique to this, but I've heard it's fairly simple. > > — > Reply to this email directly or view it on GitHub > https://github.com/phanan/koel/issues/98#issuecomment-166727625.
Author
Owner

@phanan commented on GitHub (Dec 23, 2015):

@ronilaukkarinen This?

image

<!-- gh-comment-id:166812345 --> @phanan commented on GitHub (Dec 23, 2015): @ronilaukkarinen This? ![image](https://cloud.githubusercontent.com/assets/8056274/11971896/565d1d7e-a97f-11e5-896c-fd6fa4f225e7.png)
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 27, 2015):

@phanan Yeah. Should it scrobble already? because for me, it doesn't.

<!-- gh-comment-id:167373875 --> @ronilaukkarinen commented on GitHub (Dec 27, 2015): @phanan Yeah. Should it scrobble already? because for me, it doesn't.
Author
Owner

@ronilaukkarinen commented on GitHub (Dec 27, 2015):

Sorry, been absent minded, didn't notice the admin connect button before. Scrobbling confirmed working now! Perfect!

<!-- gh-comment-id:167436607 --> @ronilaukkarinen commented on GitHub (Dec 27, 2015): Sorry, been absent minded, didn't notice the admin connect button before. Scrobbling confirmed working now! Perfect!
Author
Owner

@ronilaukkarinen commented on GitHub (Aug 9, 2017):

Just noticed I don't see "Scrobbling now" any more. The songs appear after playing to my profile but not during...

<!-- gh-comment-id:321252065 --> @ronilaukkarinen commented on GitHub (Aug 9, 2017): Just noticed I don't see "Scrobbling now" any more. The songs appear after playing to my profile but not during...
Author
Owner

@phanan commented on GitHub (Aug 19, 2017):

Still kicking on my end:

screen shot 2017-08-19 at 16 23 32
<!-- gh-comment-id:323529578 --> @phanan commented on GitHub (Aug 19, 2017): Still kicking on my end: <img width="806" alt="screen shot 2017-08-19 at 16 23 32" src="https://user-images.githubusercontent.com/8056274/29488030-c93d5ef0-84fa-11e7-8781-11243781df0e.png">
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/koel-koel#67
No description provided.