mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #196] Sync favorites with Last.fm loved tracks #141
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ronilaukkarinen on GitHub (Jan 20, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/196
I have thousands of loved tracks in last.fm, it would be wonderful to sync them with my music library. After they discontinued Last.fm radio, I have no way to play them.
In Spotify I can use Spotibot or Ivyishere and they'll match the loved tracks with songs in Spotify. To be able to import loved tracks to Koel AND add automatically loved when favorited, would be a dream come true.
@phanan commented on GitHub (Jan 21, 2016):
Don't think Koel will support this Last.fm-exclusive feature. I would imagine it's straightforward to do manually though: query the list of loved tracks from Last.fm (via its API perhaps), match it with Koel's database, and add a record into
interactionstable with each match found.@ronilaukkarinen commented on GitHub (Jan 21, 2016):
Ok, too bad. That works when importing favs, but adding favs further will be a pain anyways if you suggest I'd query loved tracks back and forth every time I love a track.
Favoriting would be a single call to last.fm to love a track, just saying, at least that way I could keep track of favorites in Last.fm's side.
@phanan commented on GitHub (Jan 21, 2016):
Liking a track with Koel currently already registers a favorite with
Last.fm, but not the other way around.
On Thu, Jan 21, 2016 at 3:28 PM, Roni Laukkarinen notifications@github.com
wrote:
@ronilaukkarinen commented on GitHub (Jan 21, 2016):
Ah, OK, did not register this before. That's awesome, thanks.
On Jan 21, 2016 9:53 AM, "Phan An" notifications@github.com wrote:
@ronilaukkarinen commented on GitHub (Jan 22, 2016):
Last.fm API gives data as xml, like this:
What do you suggest?
@phanan commented on GitHub (Jan 22, 2016):
Erm... Koel uses the default built-in SimpleXML.
@ronilaukkarinen commented on GitHub (Jan 22, 2016):
Yes, but I meant what do you suggest in manually matching with
interactionstables? how thesong_idis generated and what would be the "straightforward" way to match the api output (xml) with the database? I have not gone that deep with koel insides yet.@phanan commented on GitHub (Jan 22, 2016):
song_id is generated based on the path of your song. So actually, you're
not creating new songs into
songstable, but using the existing data.What I would do is:
have such a song in Koel
liked=1, song_id=, user_id=
On Fri, Jan 22, 2016 at 3:40 PM, Roni Laukkarinen notifications@github.com
wrote:
@ronilaukkarinen commented on GitHub (Jan 22, 2016):
OK, thanks for the tips! I'll try it soon.
@ronilaukkarinen commented on GitHub (Feb 26, 2016):
Getting back on this.
I'm not exactly sure how to compare data and how to get koel song id from Last.fm node... would it be really much work for you to create one query for me to get all the loved tracks based on that xml output I gave?