Page 19 of 24

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

Posted: Mon Jan 21, 2013 9:10 pm
by Buruan
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.

Re: Command Line Switch?

Posted: Sun Jan 27, 2013 6:35 am
by Psyker7
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.

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

Posted: Sun Jan 27, 2013 11:55 am
by Buruan
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

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

Posted: Thu Jan 31, 2013 8:14 am
by Psyker7
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 :)

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

Posted: Thu Jan 31, 2013 12:27 pm
by Buruan
Awesome.
Thanks Psyker.
Will give this a whirl once home later today.
Especially excited about the new CSV format.

Anar kaluva tielyanna

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

Posted: Fri Feb 01, 2013 9:52 pm
by Buruan
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.

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

Posted: Sun Feb 03, 2013 2:19 pm
by dpurcell
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.

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

Posted: Sun Feb 03, 2013 7:51 pm
by Psyker7
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.

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

Posted: Sun Feb 17, 2013 10:08 am
by Buruan
Hey Psykar.
COuld you make any progress on this?

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

Posted: Thu Feb 21, 2013 10:13 pm
by Katmassive
ascii error over here too it would be really cool to get my play count back

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

Posted: Thu Feb 21, 2013 10:34 pm
by Psyker7
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.

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

Posted: Sat Feb 23, 2013 9:18 am
by Guest
Same error here.

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

Posted: Sun Feb 24, 2013 4:55 am
by Psyker7
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!

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

Posted: Sat Mar 02, 2013 8:09 pm
by Psyker7
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!

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

Posted: Sun Mar 03, 2013 1:31 pm
by mcow
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.)