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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Buruan
Posts: 96
Joined: Sun Nov 04, 2012 6:26 pm

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

Post by Buruan » Mon Jan 21, 2013 9:10 pm

Another question.
Which is the "newer"/"better" version to use?
Python or plain vbs?

I see the VBS having more releases but cant tell which is the more advanced one.

Psyker7
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

Re: Command Line Switch?

Post by Psyker7 » Sun Jan 27, 2013 6:35 am

Apologies for the lack of action, I've been off holidaying in India, what can I say.
chrisone wrote: Is there a command line I can use to run the Import executable and update played times without further input?
Not as such - at the moment, you have to run the exe, but this will still get the popup of username and settings etc.
Added to the TODO list.
Buruan wrote: I am trying to handle the unmatched tracks, what would be the best way to go about this?
Does anyone have an approach?
Best way at the moment - change the name in MM to match what appears on last.fm
I'm looking at fuzzy matching, this is a little way off though.
Buruan wrote:Another question.
Which is the "newer"/"better" version to use?
Python or plain vbs?

I see the VBS having more releases but cant tell which is the more advanced one.
Python will be replacing the vbs version as soon as I get around to updating the package to the same name, and uploading it to MM's addon repo.
The python version available from this thread / my website, is stable as is, and this will be the version replacing the VBS version.

Buruan
Posts: 96
Joined: Sun Nov 04, 2012 6:26 pm

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

Post by Buruan » Sun Jan 27, 2013 11:55 am

Thanks Psyker.
Much appreciated.

Having a tough time parsing the "unMatched.txt" file into an easily readable format.
Is there a way to do that, or write into a csv friendly format?

Nothing urgent as the tool works a charme as is, but would help me in my endeavor to make it all match

Psyker7
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

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

Post by Psyker7 » Thu Jan 31, 2013 8:14 am

Updates!

Version numbers have been combined, python version is now version 3.x

Version 3.1 has been released:
  • Updated version numbers to be consistant with old vbs script.
  • Renamed files to remove references to python specific version
  • Added command line argument for non interactive.
  • Changes export files to be in a nice csv format.
http://psykar.com/script-files/LastFmImport-3.1.mmip

Has also been submitted to the MM addon repo, awaiting approval.

Enjoy :)

Buruan
Posts: 96
Joined: Sun Nov 04, 2012 6:26 pm

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

Post by Buruan » Thu Jan 31, 2013 12:27 pm

Awesome.
Thanks Psyker.
Will give this a whirl once home later today.
Especially excited about the new CSV format.

Anar kaluva tielyanna

Buruan
Posts: 96
Joined: Sun Nov 04, 2012 6:26 pm

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

Post by Buruan » Fri Feb 01, 2013 9:52 pm

Getting an error message with the new version :

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

<type 'exception.UnicodeEncodeError'>: 'ascii' codec cant encode character u'\xe4' in position 6 : ordinal not in range(128)

I assume that is due to umlaut character and ascii 7bit vs 8bit encoding.

dpurcell
Posts: 4
Joined: Fri Feb 01, 2013 10:35 am

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

Post by dpurcell » Sun Feb 03, 2013 2:19 pm

I just ran this for the first time (VBS version) and received the same error.

Thanks for the script, btw. Like some others here, I finally got fed up with the latest version of iTunes and moved to MM. So far, so good.
Buruan wrote:Getting an error message with the new version :

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

<type 'exception.UnicodeEncodeError'>: 'ascii' codec cant encode character u'\xe4' in position 6 : ordinal not in range(128)

I assume that is due to umlaut character and ascii 7bit vs 8bit encoding.

Psyker7
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

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

Post by Psyker7 » Sun Feb 03, 2013 7:51 pm

Unicode is a pain, I thought I'd covered all the cases (it's actually occuring when trying to write out the csv results - but it doesn't commit the database changes unless this succeeds)

I'll get an update done later today hopefully.

Buruan
Posts: 96
Joined: Sun Nov 04, 2012 6:26 pm

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

Post by Buruan » Sun Feb 17, 2013 10:08 am

Hey Psykar.
COuld you make any progress on this?

Katmassive
Posts: 5
Joined: Mon Nov 14, 2011 6:08 am

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

Post by Katmassive » Thu Feb 21, 2013 10:13 pm

ascii error over here too it would be really cool to get my play count back

Psyker7
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

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

Post by Psyker7 » Thu Feb 21, 2013 10:34 pm

I was clearly overly optimistic with my free time...

Version 3.0 should still work without unicode issues, the bits you're missing out on are which shouldn't be a big deal I hope.
http://psykar.com/script-files/LastFmImport-3.0.mmip
  • Added command line argument for non interactive.
  • Changes export files to be in a nice csv format.
The next week or two are looking pretty full unfortunately, but if I find time I'll get it up asap.

Guest

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

Post by Guest » Sat Feb 23, 2013 9:18 am

Same error here.

Psyker7
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

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

Post by Psyker7 » Sun Feb 24, 2013 4:55 am

And so my flight to Sydney got cancelled.

Good news is you guys get the update finally!

It'll get updated shortly on the Addon page, or you can get it directly from
http://psykar.com/script-files/LastFmImport-3.2.mmip

Single change to fix the unicode issues!

Psyker7
Posts: 254
Joined: Sat Mar 03, 2007 8:00 am

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

Post by Psyker7 » Sat Mar 02, 2013 8:09 pm

Fixed the link in the original post (oops)
You should be able to auto-update from inside MM though (loving the new addon repo)

Let me know if there are any further issues!

mcow
Posts: 819
Joined: Sun Sep 21, 2008 9:35 pm
Location: Cupertino, California

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

Post by mcow » Sun Mar 03, 2013 1:31 pm

Psyker7 wrote:You should be able to auto-update from inside MM though (loving the new addon repo)
"No update server available." (As opposed to "No update available" seen on other extensions.)

Post Reply