Page 1 of 1

Script Request - LastFM Loved Tracks - Creating Playlist

Posted: Mon Nov 23, 2009 9:09 am
by nynaevelan
Songbird has a plugin that downloads the Loved Tracks from Last.FM and inserts them into a playlist. Would it be possible to create a script that would log into LastFM and create a playlist in MM of the loved tracks?? I wouldn't need it to make any changes to the Loved status, I would just like to have a playlist available to play and to use to change the status on Last.FM. If possible this would give the user the option whether to overwrite the playlist if it already exists or to append to the end of it. And also to create a log file of the tracks which could not be found in MM. Anyone interested in taking up this challenge.

Re: Script Request - LastFM Loved Tracks - Creating Playlist

Posted: Wed Nov 25, 2009 4:38 am
by Psyker7
As mentioned, if no one else wants to do this, I'll have a go at it in a week or so :)

If anyone else *does* want a go at it, my script is probably a good starting point - major change would be creating a playlist instead of updating the track details.

Edit: what would really make me want to write this script is if this was implimented :P

http://mediamonkey.com/forum/viewtopic. ... 0&p=217775
http://www.ventismedia.com/mantis/view.php?id=5425

Re: Script Request - LastFM Loved Tracks - Creating Playlist

Posted: Wed Nov 25, 2009 4:58 am
by nynaevelan
Psyker7 wrote:As mentioned, if no one else wants to do this, I'll have a go at it in a week or so :)

If anyone else *does* want a go at it, my script is probably a good starting point - major change would be creating a playlist instead of updating the track details.

Edit: what would really make me want to write this script is if this was implimented :P

http://mediamonkey.com/forum/viewtopic. ... 0&p=217775
http://www.ventismedia.com/mantis/view.php?id=5425
I am looking forward to that also, it's kinda the next necessary step. :wink:

Re: Script Request - LastFM Loved Tracks - Creating Playlist

Posted: Mon Dec 07, 2009 5:14 am
by Psyker7
Bah @ which thread to reply to.

Anywho, mostly done, just wondering what to do with duplicates at the moment (ie tracks you have multiple copies of) tempted to take the highest playcount of the duplicates at the moment, does that sound OK?

Only took about 30 mins to code up once I actually sat down and started at it :P

Re: Script Request - LastFM Loved Tracks - Creating Playlist

Posted: Mon Dec 07, 2009 5:43 am
by nynaevelan
I would not be opposed to using the one with the highest playcount, although I also wouldn't mind if a "ghost" track could be created. Otherwise how would you know to fix the duplicates? Or maybe a log to give a list of the tracks that could not be added to the playlist. But that is not a major problem if it could not be addressed.

Re: Script Request - LastFM Loved Tracks - Creating Playlist

Posted: Mon Dec 07, 2009 6:12 am
by Psyker7