Page 1 of 1

Song matching with Last.FM & Co.

PostPosted: Fri Nov 13, 2015 12:12 pm
by Wolke
The function "Play top songs" for artists does not include all songs listed on the respective Last.FM page. The reason is that the titles on my server sometimes deviate a little from those in the Last.FM list.

An easy first step would be to make the matching for this function case insensitive. A slightly more sophisticated additional approach would be to use something like a similarity metric like the Levenshtein Distance (Edit Distance) with a low threshold for artist names and a slightly higher one for song titles.

Since the connection to the Last.FM API is already implemented, it could be further used to import or use playlists on the fly from Last.FM (or even other services like playlists.net), adding or playing only those that can be found on the server (with the same similarity metric used). This would greatly improve the usablity of Subsonic in my opinion, since it almost takes too much effort to create playlists manually for every occation or mood.

Re: Song matching with Last.FM & Co.

PostPosted: Fri Nov 13, 2015 4:10 pm
by mitrailer
Great idea! +10000

Re: Song matching with Last.FM & Co.

PostPosted: Wed Dec 02, 2015 8:22 pm
by Wolke
Another usecase that should be considered here are situations where people may or may not put additional information into the track title (things like: "Bonus Track", "live", "feat. xyz", and so forth). In cases where no exact match can be found, such variants should be tested for by removing certain parts with incremental impact on the edit distance until an exact match can be found. Maybe this could be realized with RegEx.