iDate Added 1.5 - Updated 23/01/2008
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 705
- Joined: Tue Dec 12, 2006 5:32 pm
- Location: The Netherlands
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 705
- Joined: Tue Dec 12, 2006 5:32 pm
- Location: The Netherlands
No problem, I'm glad it's working!
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
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 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!
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 9
- Joined: Wed Jun 04, 2008 10:08 pm
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 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!
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.
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.
-
- Posts: 9
- Joined: Wed Jun 04, 2008 10:08 pm
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
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]
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:
Know what this might be caused by?
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"
Re: iDate Added 1.5 [MM2+3]
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.