iDate Added 1.5 - Updated 23/01/2008

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

Post by trixmoto » Tue Jan 22, 2008 6:55 pm

Can you please send me a sample XML file with this in? - iTunes must encode this character in a strange way. :)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

Onweerwolf
Posts: 636
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Post by Onweerwolf » Tue Jan 22, 2008 7:08 pm

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.
Image

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

Post by trixmoto » Wed Jan 23, 2008 3:56 am

Ok, I'll check this out.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

Post by trixmoto » Wed Jan 23, 2008 11:58 am

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! :)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

Post by trixmoto » Wed Jan 23, 2008 3:31 pm

New version (1.5) is now available to download from my website. I've now fixed ampersand and percent characters not decoded properly.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

Onweerwolf
Posts: 636
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Post by Onweerwolf » Thu Jan 24, 2008 2:51 pm

Yay!

The latest version works perfectly!

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

Many, many thanx for this.
Image

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

Post by trixmoto » Thu Jan 24, 2008 6:46 pm

No problem, I'm glad it's working! :D
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

treponem
Posts: 52
Joined: Sat Jan 12, 2008 9:54 am

Post by treponem » Sat Feb 16, 2008 7:44 am

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!

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

Post by trixmoto » Sun Feb 17, 2008 1:56 pm

Thanks! Yes, this script could easily be modified to write any field, it already reads them all in from the file. :)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

dragonslayer22
Posts: 9
Joined: Wed Jun 04, 2008 10:08 pm

Post by dragonslayer22 » Sat Jun 07, 2008 10:41 am

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?

treponem
Posts: 52
Joined: Sat Jan 12, 2008 9:54 am

Post by treponem » Sun Jun 08, 2008 1:54 am

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.

dragonslayer22
Posts: 9
Joined: Wed Jun 04, 2008 10:08 pm

Post by dragonslayer22 » Sun Jun 08, 2008 10:34 am

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'.

treponem
Posts: 52
Joined: Sat Jan 12, 2008 9:54 am

Post by treponem » Mon Jun 09, 2008 3:43 am

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 :(

Phantasy

Re: iDate Added 1.5 [MM2+3]

Post by Phantasy » Wed Oct 29, 2008 4:43 pm

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?

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

Re: iDate Added 1.5 [MM2+3]

Post by trixmoto » Mon Nov 03, 2008 4:44 am

Unicode characters outside of the ASCII range that the script expects, I imagine.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

Post Reply