Page 2 of 5

Posted: Tue Jan 22, 2008 6:55 pm
by trixmoto
Can you please send me a sample XML file with this in? - iTunes must encode this character in a strange way. :)

Posted: Tue Jan 22, 2008 7:08 pm
by Onweerwolf
The sample .XML I send you yesterday contained at least one song with a '&'

I can resend it of course if you already deleted it.

Posted: Wed Jan 23, 2008 3:56 am
by trixmoto
Ok, I'll check this out.

Posted: Wed Jan 23, 2008 11:58 am
by trixmoto
Although your XML contains a "&" character, iTunes appears to have wrongly (at at least not UTF) encoded it to "&". I can correct this one off case and hope iTunes doesn't produce anymore! :)

Posted: Wed Jan 23, 2008 3:31 pm
by trixmoto
New version (1.5) is now available to download from my website. I've now fixed ampersand and percent characters not decoded properly.

Posted: Thu Jan 24, 2008 2:51 pm
by Onweerwolf
Yay!

The latest version works perfectly!

It finds all my tracks and updates all of them correctly now. :)

Many, many thanx for this.

Posted: Thu Jan 24, 2008 6:46 pm
by trixmoto
No problem, I'm glad it's working! :D

Posted: Sat Feb 16, 2008 7:44 am
by treponem
One thing: THANK YOU!!!

I had the problem that I lost the 'last played' dates for my music from September till December '07 - switching from MM2 to MM3, and also other, stupid things I did.

So I imported the Playdates to Itunes with a perl script (inspired by http://www.mediamonkey.com/forum/viewto ... light=perl) and changed a few lines in your script to grab the playdates instead of the 'date added' from Itunes.

Just wanted to say that this script could be the base to import all the other things from Itunes which MM2/3 normally ignores. Great work, trix!

Posted: Sun Feb 17, 2008 1:56 pm
by trixmoto
Thanks! Yes, this script could easily be modified to write any field, it already reads them all in from the file. :)

Posted: Sat Jun 07, 2008 10:41 am
by dragonslayer22
treponem wrote:One thing: THANK YOU!!!

I had the problem that I lost the 'last played' dates for my music from September till December '07 - switching from MM2 to MM3, and also other, stupid things I did.

So I imported the Playdates to Itunes with a perl script (inspired by http://www.mediamonkey.com/forum/viewto ... light=perl) and changed a few lines in your script to grab the playdates instead of the 'date added' from Itunes.

Just wanted to say that this script could be the base to import all the other things from Itunes which MM2/3 normally ignores. Great work, trix!
I've been looking to do exactly this, but I have no programming experience. Can you post your modified version of this script that imports last played data?

Posted: Sun Jun 08, 2008 1:54 am
by treponem
Dear Mr Dragonslayer

I haven't kept the script, thought it would be unimportant for any other user but me. But take a look here http://www.mediamonkey.com/forum/viewto ... 432#132432 this is exactly what I did.

Posted: Sun Jun 08, 2008 10:34 am
by dragonslayer22
Can you be more specific? I did the changes you mentioned, but I got an error in MediaMonkey when I tried to use the script. The last played date field sin the Itunes xml are 'Play Date' and 'Play Date UTC'.

Posted: Mon Jun 09, 2008 3:43 am
by treponem
Sorry, can't remember any more what I exactly did. I made it 4 months ago and only used Itunes to import the play dates from last.fm and then to MM.

What I did was checking the Itunes XML for interesting fields and renaming them in Trix's script so that MM knows where to write to. Should have kept this script and made it public - didn't thought that anyone else could find that useful :(

Re: iDate Added 1.5 [MM2+3]

Posted: Wed Oct 29, 2008 4:43 pm
by Phantasy
Hey,

I just grabbed this script (switching from iTunes) to try keep all my "Date Added" fields in check and I get this error when I run it:

Code: Select all

Error #5 - Microsoft VBScript Runtime Error
Invalid procedure call or argument: "Chr"
File: "C:\Program Files\MediaMonkey\Scripts\iDateAdded.vbs", Line: 226, Column: 10

Error happened during script execution:
Invalid procedure call or argument: "Chr"
Know what this might be caused by?

Re: iDate Added 1.5 [MM2+3]

Posted: Mon Nov 03, 2008 4:44 am
by trixmoto
Unicode characters outside of the ASCII range that the script expects, I imagine.