Last.fm Playcount Import (2010-03-28) [MM3/4]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby Onweerwolf » Sun Jul 10, 2011 6:35 pm

A quick question, whereas I think this is certainly a cool script I personally have no use for it's current working since I'm 100% sure that each play in last.fm has been accounted for in MM. However not all MM plays have been scrobbled. So what I'd be interested in is a way to tell me how much plays of each track in my library has actually been scrobbled. Would it be possible to alter this script so that it only populates a chosen custom field with the number of playcounts in the last.fm history?

It's a not a big must-have but it sure would be neat, so I thought i'd just mention it here.
Image
Onweerwolf
 
Posts: 568
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby Psyker7 » Sun Jul 10, 2011 6:46 pm

Onweerwolf wrote:A quick question, whereas I think this is certainly a cool script I personally have no use for it's current working since I'm 100% sure that each play in last.fm has been accounted for in MM. However not all MM plays have been scrobbled. So what I'd be interested in is a way to tell me how much plays of each track in my library has actually been scrobbled. Would it be possible to alter this script so that it only populates a chosen custom field with the number of playcounts in the last.fm history?

It's a not a big must-have but it sure would be neat, so I thought i'd just mention it here.

Should be easy enough - in fact if you're feeling adventurous you can probably make the change yourself - change this line
list.Item(x).PlayCounter = PlayCount
and replace 'PlayCounter' with Custom1 or any other field from here: http://www.mediamonkey.com/wiki/index.php/SDBSongData

Probably easier than me producing a separate version of the script or making an option to do this.

Sorry for those waiting on the previously mentioned update - I've put my effort into porting this to C++ (partially for my own experience) - I've got the XML parsing down, hoping to get some multi-threading happening with the xml feed downloads which should get the script a significant speed boost.
Psyker7
 
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby Onweerwolf » Sun Jul 10, 2011 6:51 pm

Wow, okay thnx. That should indeed be easy. Just wondering though, the script also has the option to update last played times. Would that still work if I changed the script the way you suggested?

I want to make sure nothing is changed in my database except the one custom field I choose. :wink:
Image
Onweerwolf
 
Posts: 568
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby Psyker7 » Sun Jul 10, 2011 7:00 pm

Just hit no to the 'update last played times' prompt when you run the script.
Psyker7
 
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby Onweerwolf » Sun Jul 10, 2011 7:06 pm

Ah check! Thank you!
Image
Onweerwolf
 
Posts: 568
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby Onweerwolf » Sun Jul 10, 2011 7:48 pm

Tried it, but it only updated the custom field with the playcount if the actual playcount in last.fm was higher than in mm.
Image
Onweerwolf
 
Posts: 568
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby Psyker7 » Sun Jul 10, 2011 8:53 pm

Change the line:
If Item.PlayCounter < PlayCount Then 'Increase play count

To
If True Then
Psyker7
 
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby NetworkingGuru » Wed Sep 07, 2011 11:53 pm

Psyker7, thanks a ton for this script, it was actually one of the reasons I decided to ditch iTunes and move to MM. Unfortunately, I can't seem to get it to work properly, either with the 2.2 version or the 3.0 beta. :(

With the 2.2 version, it appeared to work, but out of 30,000+ last.fm plays, it only updated a handful of files in MM. Furthermore, it didn't seem to be updating last played times. Since I imported playcounts from iTunes originally, I assumed this was because my playcounts were all higher in MM than last.fm, so I removed all music from my library and readded it to reset the playcounts. I then ran 2.2 again and got the same behavior. I theorized that this might be because I had last.fm automatically fix the spelling/names of songs as they were scrobbled, so I disabled that setting and played a bunch of songs today from my phone. They were scrobbled correctly on last.fm, so I ran the script tonight, and it only updated one file - And that was one that I haven't played in days. :-?

So, after this, I downloaded the beta 3.0 script. When I run it, however, it gets to page 100 (out of 779) and throws the following error: Error #500 Microsoft VBScript Runtime Error, Variable is undefined 'TrackListXML'. Then it gives the path to the script and lists the line number (165).

Do you have any suggestions as to what I am doing wrong? Thanks in advance for any assistance.

EDIT: Got 2.2 working, but the issue is weird. Apparently, the script only updates playcounts/last played if the track has a non-zero play counter. In my case, nearly everything was zero, but I had (by chance) listened to a song between my last two tests of the 2.2 script, and I noticed that when I ran the script, that one song updated. So, I got a script to increment the play counters by 1, ran it, and now the script is happily updating all of my files.
NetworkingGuru
 
Posts: 3
Joined: Wed Sep 07, 2011 11:36 pm

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby heartofhate » Fri Oct 14, 2011 10:09 am

how is the work going on? are there any news?

@NetworkingGuru: i've got the same results as you do when i use version 3. i do not have an idea to fix it. when i use the search function for the forum there are only results for autorateaccurate...
heartofhate
 
Posts: 188
Joined: Wed Jun 18, 2008 1:43 pm
Location: berlin

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby Psyker7 » Sun Oct 16, 2011 2:11 am

Fixing version 3 is unlikely something I'll do I'm afraid. Most likely the error is with a last.fm query timing out - I don't really handle that gracefully in the version 3 beta.

I'm taking a quick look at version 2 with the only updating when playcount <> 0 bug right now, I hadn't come across it before.

edit: I am unable to reproduce this bug with MM 4 beta. Tracks with a zero playcount get updated just fine using version 2.2 downloaded from my website.
If you can reproduce it, any chance of PM'ing me with a link to an uploaded MM database so I can look at it further? Thanks!
Psyker7
 
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby nynaevelan » Sun Oct 16, 2011 9:28 am

Psyker7:

I have a question, I often have tracks on last.fm where I have changed the name in MM and the import no longer recognizes them as the same track, is there a possibility to add some type of functionality to allow the user to select which track should be used to update when a match is not found in MM??

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
nynaevelan
 
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby NetworkingGuru » Mon Oct 17, 2011 9:26 am

Psyker7 wrote:Fixing version 3 is unlikely something I'll do I'm afraid. Most likely the error is with a last.fm query timing out - I don't really handle that gracefully in the version 3 beta.

I'm taking a quick look at version 2 with the only updating when playcount <> 0 bug right now, I hadn't come across it before.

edit: I am unable to reproduce this bug with MM 4 beta. Tracks with a zero playcount get updated just fine using version 2.2 downloaded from my website.
If you can reproduce it, any chance of PM'ing me with a link to an uploaded MM database so I can look at it further? Thanks!


Thanks for the response Psyker. I can confirm that the <> 0 bug does not exist in MM4. Unfortunately, I upgraded 3 to 4 when I installed, so I don't have a DB with the error any longer. However, it should be reproducible just by installing MM3 and adding some files to blank DB.
NetworkingGuru
 
Posts: 3
Joined: Wed Sep 07, 2011 11:36 pm

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby jarod73 » Sun Oct 23, 2011 7:30 pm

is their any other place to d/l this script the webpage will not open
jarod73
 
Posts: 11
Joined: Fri Jun 24, 2011 12:10 pm

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby Psyker7 » Mon Oct 24, 2011 5:50 am

Servers up... seems I got ddos'd and my amazon instance ran out of memory.
Psyker7
 
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

Re: Last.fm Playcount Import (2010-03-28) [MM3/4]

Postby neonfire999 » Sat Jan 07, 2012 5:17 pm

I have 2 songs that seem to report playcounts a lot higher than they are on the site.. Any idea why this might be?
neonfire999
 
Posts: 10
Joined: Tue Mar 29, 2011 9:37 pm

PreviousNext

Return to Need Help with Addons?

Who is online

Users browsing this forum: No registered users and 7 guests