Getting Last.FM Played #'s?

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

Funkafonik
Posts: 58
Joined: Fri Feb 13, 2009 12:33 pm

Re: Getting Last.FM Played #'s?

Post 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.
m0nkiii
Posts: 15
Joined: Mon Feb 26, 2007 1:48 pm
Location: Swiiiiden

Re: Getting Last.FM Played #'s?

Post 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/
Psyker7
Posts: 255
Joined: Sat Mar 03, 2007 8:00 am

Re: Getting Last.FM Played #'s?

Post 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
Redeye51
Posts: 2
Joined: Thu Apr 19, 2012 5:18 pm

Re: Getting Last.FM Played #'s?

Post 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
Psyker7
Posts: 255
Joined: Sat Mar 03, 2007 8:00 am

Re: Getting Last.FM Played #'s?

Post by Psyker7 »

Typo on my part, updated.
Redeye51
Posts: 2
Joined: Thu Apr 19, 2012 5:18 pm

Re: Getting Last.FM Played #'s?

Post by Redeye51 »

It's fixed! It's loading my counts as I type this message.

Thanks for you hard work on this.
sevenalive

Re: Getting Last.FM Played #'s?

Post by sevenalive »

Any chance for the same thing but for Zune counts on zune.net?

Maybe an option: Zune counts + Local Counts.
Cadfael
Posts: 3
Joined: Thu May 08, 2008 1:19 am

Chance to Look for Album Interpret?

Post 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
davepaul29
Posts: 1
Joined: Sun Aug 23, 2015 6:08 am

Re: Getting Last.FM Played #'s?

Post 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
dennis800121
Posts: 8
Joined: Fri Feb 14, 2014 4:48 am

Re: Getting Last.FM Played #'s?

Post 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!?
Funkafonik
Posts: 58
Joined: Fri Feb 13, 2009 12:33 pm

Re: Getting Last.FM Played #'s?

Post 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...
eugenesv
Posts: 3
Joined: Thu Dec 24, 2015 7:54 pm

Re: Getting Last.FM Played #'s?

Post by eugenesv »

I have the same issue with this awesome addon :cry:
Anyone found a solution?
ChetRipley
Posts: 2
Joined: Wed May 09, 2012 2:39 pm

Re: Getting Last.FM Played #'s?

Post 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
Post Reply