Page 2 of 2

Re: Getting Last.FM Played #'s?

Posted: Tue Feb 17, 2009 3:21 pm
by Funkafonik
About the Last.FM playcount feed , I've noticed the feeds don't match perfectly with our Libraries. I've imported Last.FM playcounts to iTunes and WMP with their respective softwares and the numbers weren't all perfect. Would there be any way to parse our own Libraries and get the playcounts from there? Especially now that their auto-correction merges duplicate/misspelled songs and artists, but only in our Libraries.

Re: Getting Last.FM Played #'s?

Posted: Tue Feb 17, 2009 3:36 pm
by m0nkiii
Funkafonik wrote:About the Last.FM playcount feed , I've noticed the feeds don't match perfectly with our Libraries. I've imported Last.FM playcounts to iTunes and WMP with their respective softwares and the numbers weren't all perfect. Would there be any way to parse our own Libraries and get the playcounts from there? Especially now that their auto-correction merges duplicate/misspelled songs and artists, but only in our Libraries.
I've done a script that parses this site: http://www.last.fm/user/USERNAME/tracks
Puts all tracks in a database and makes some stats. Using this data to import to MM should work.
It takes a while to parse though.

http://www.lastfm.shikaka.net/

Re: Getting Last.FM Played #'s?

Posted: Wed Feb 18, 2009 12:40 am
by Psyker7
Well here is a vbscript implimentation of a last.fm sync of playcounts.

It will find total playcounts of every track in your last.fm history, check if it is higher than the value in the database (for all tracks of that title/artist - even if multiples) and updates it if so.

My first real scripting attempt for MM, thanks to:
Teknojnky - author of last.fmnode - for code for various functions, hacked a LOT.
Trixmoto - for mmip packaging of normal scripts, had me stumped for a while there :D


Forum thread:
http://www.mediamonkey.com/forum/viewto ... =2&t=37341

Re: Getting Last.FM Played #'s?

Posted: Thu Apr 19, 2012 5:37 pm
by Redeye51
I'm getting the following errors during install of you plugin.

Error 1:
Image

Error 2:
Image

Are there prerequisites?

Code: Select all

Dim oShell : Set oShell = CreateObject( "WScript.Shell" )
Dim ScriptFileSaveLocation : ScriptFileSaveLocation = SDB.ScriptsPath&"LastFmImport\"

If Not fso.folderexists(ScriptFileSaveLocation) Then <-- Fails Here
	fso.CreateFolder(ScriptFileSaveLocation)
End If
My System: Windows 7 64bit
MediaMonkey: 4.0.3.1476

Thanks

Re: Getting Last.FM Played #'s?

Posted: Fri Apr 20, 2012 1:38 am
by Psyker7
Typo on my part, updated.

Re: Getting Last.FM Played #'s?

Posted: Fri Apr 20, 2012 10:52 am
by Redeye51
It's fixed! It's loading my counts as I type this message.

Thanks for you hard work on this.

Re: Getting Last.FM Played #'s?

Posted: Sat Aug 18, 2012 9:19 pm
by sevenalive
Any chance for the same thing but for Zune counts on zune.net?

Maybe an option: Zune counts + Local Counts.

Chance to Look for Album Interpret?

Posted: Thu Nov 01, 2012 10:08 am
by Cadfael
Salve!

First: sorry for my bad english ;-)

Is there any Chance, to look for the Album Artist in the Database of Mediamonkey?

Thanx for Help,
Andy

Re: Getting Last.FM Played #'s?

Posted: Sun Aug 23, 2015 6:22 am
by davepaul29
Since the change to Last FM new style this week LastFM playcount Import script no longer works

Gives this error

<type 'exceptions.AttributeError'>:'NoneType' object has no attribute 'findall'

Hope tis very useful script can be fixed.

Thanks

Dave Paul

Re: Getting Last.FM Played #'s?

Posted: Tue Sep 01, 2015 2:12 am
by dennis800121
Hello!
I have the same issue as Dave Paul!

Since Last.fm´s update i am not able do import my playcount in Mediamonkey
Does anyone else have this issue??

Results:
Error was encountered, rerunning will resume where you left off

<type 'exeptions.AttributeError'>:'NoneType' object has no attribute 'findall'


Anyone who can help!?

Re: Getting Last.FM Played #'s?

Posted: Sat Sep 05, 2015 10:30 am
by Funkafonik
Seems like for the Playcount Importer, it was changed:

http://www.last.fm/api/show/library.getTracks

"A paginated list of all the tracks in a user's library, with play counts and tag counts."

Hope there's a new way to get the Last Played dates as well...

Re: Getting Last.FM Played #'s?

Posted: Thu Dec 24, 2015 8:02 pm
by eugenesv
I have the same issue with this awesome addon :cry:
Anyone found a solution?

Re: Getting Last.FM Played #'s?

Posted: Mon Dec 28, 2015 7:11 pm
by ChetRipley
i have an older version that has always worked for me and still does. the newer 3.x versions always errored for me. LastFmImport-2.4 https://www.dropbox.com/s/876r81tb5nqa0 ... .mmip?dl=0