Page 4 of 10

Re: Export to iTunes library.xml

Posted: Sat Oct 03, 2009 12:52 pm
by Tylast
Gotcha. I forgot to delete iTunes XML & ITL files first. Re-did it. All ratings & playcounts there! After iTunes re-indexes all the files, I'm gonna try this script to get the last played data.

Re: Export to iTunes library.xml

Posted: Tue Jan 05, 2010 10:18 pm
by Sizzly
Greetings!

I was running 3.1.x and now I'm running 3.2.x and I don't see the script. I've tried everything in this thread to try and get this script working 'cause I needs it.

Nothing.

Thoughts? What information do you need from me to help troubleshoot the issue?

Re: Export to iTunes library.xml

Posted: Wed Jan 06, 2010 6:20 am
by nynaevelan
What kind of problems are you having>

Re: Export to iTunes library.xml

Posted: Wed Jan 06, 2010 7:53 am
by Sizzly
I don't see the script in any of the menus available. I've tried changing the timer value to true and false and still the script isn't visible.

Re: Export to iTunes library.xml

Posted: Wed Jan 06, 2010 8:26 am
by nynaevelan
Did you put the info in the scripts.ini file??

Re: Export to iTunes library.xml

Posted: Wed Jan 06, 2010 9:14 am
by Sizzly
I did. Scripts.ini and I put the script in the scripts/auto folder.

Re: Export to iTunes library.xml

Posted: Wed Jan 06, 2010 10:00 am
by Sizzly
Okay. I just tried it on an XP OS and I can see the script.

Any thoughts about why it wouldn't show up when running Vista?

Re: Export to iTunes library.xml

Posted: Wed Jan 06, 2010 10:05 am
by nynaevelan
Vista has that annoying UAC, try running MM as an administrator and then reinstalling the script. You should then be able to run MM as normal and have the script visible.

Re: Export to iTunes library.xml

Posted: Wed Jan 06, 2010 6:17 pm
by Sizzly
That was it!

I had to run MM in Administrator mode to get it to register the script. It works beautifully.

Many thanks!

Re: Export to iTunes library.xml

Posted: Thu Oct 07, 2010 12:53 pm
by kevinchg
This scripts has some problem ,
it can correctly export chinese, japanese...asian character,
itunes actually use UTF-8 t0 code the path and filename,
not codepage in this scripts.
sincerely

Re: Export to iTunes library.xml

Posted: Thu Oct 07, 2010 2:21 pm
by nynaevelan
This script is no longer in production, mark has a new plugin which exports/imports to itunes.

Re: Export to iTunes library.xml

Posted: Thu Oct 07, 2010 3:48 pm
by DC
kevinchg wrote:This scripts has some problem ,
it can correctly export chinese, japanese...asian character,
itunes actually use UTF-8 t0 code the path and filename,
not codepage in this scripts.
sincerely
I suppose you mean "it cannot correctly export..". Actually, this was reported before in this thread. To tell the truth I could not get myself to touch vbscript again. But if you provide an example, and also show actual vs expected result, I would look into it. As far as I know any unicode character with a codepoint like 23456 (whatever that is) could be encoded as &x23456; - that's what the script does.

DC

Re: Export to iTunes library.xml

Posted: Thu Oct 07, 2010 9:53 pm
by kevinchg
Tet's see following ,
I use your scipts to generate the iTunes XML,
for thinese MP3 stored in chinese path and file name, all tags information are coded in codepoint type,
so does the file path.

[ Traditional Chinese file and chinese path --Generated by DC's scripts]

Name</key><string>&#19968;&#35328;&#38627;&#30433;</string>
<key>Artist</key><string>&#36842;&#20811;&#29275;&#20180;</string>
<key>Album Artist</key><string>1998&#24180;&#24230;&#22283;&#35486;&#32317;&#20896;&#36557;</string>
<key>Album</key><string>1998&#24180;&#24230;&#22283;&#35486;&#32317;&#20896;&#36557;</string>
<key>Location</key><string>file://localhost/E:/Data/Select%20Music/MP3%20128K/%u570B%u8A9E%u6D41%u884C/1998%u5E74%u5EA6%u570B%u8A9E%u7E3D%u51A0%u8ECD/1998%u5E74%u5EA6%u570B%u8A9E%u7E3D%u51A0%u8ECD/%u4E00%u8A00%u96E3%u76E1.mp3</string>
.......................

And if I generated the XML by using iTunes base on same filea and path (also in chinese naming),
the XML looks like following, we can see from the path , it should be coded in UTF8 instead of codepoint.

[ Chinese file and chinese path --Generated by native iTunes Library process]
<key>Track ID</key><integer>194</integer>
<key>Name</key><string>一言難盡</string>
<key>Artist</key><string>迪克牛仔</string>
<key>Album Artist</key><string>1998年度國語總冠軍</string>
<key>Album</key><string>1998年度國語總冠軍</string>

<key>Location</key><string>file://localhost/E:/Data/Select%20Music/MP3%20128K/%E5%9C%8B%E8%AA%9E%E6%B5%81%E8%A1%8C/1998%E5%B9%B4%E5%BA%A6%E5%9C%8B%E8%AA%9E%E7%B8%BD%E5%86%A0%E8%BB%8D/1998%E5%B9%B4%E5%BA%A6%E5%9C%8B%E8%AA%9E%E7%B8%BD%E5%86%A0%E8%BB%8D/%E4%B8%80%E8%A8%80%E9%9B%A3%E7%9B%A1.mp3</string>

By the way , if I choose a English file with Chinese path, and generate XML by DC's scripts,
it looks like this:

[ Englisj file and chinese path --Generated by DC's Scripts],
the song is ABBA's Mamma Mia,

<key>Track ID</key><integer>5</integer>
<key>Name</key><string>Mamma Mia [1975]</string>
<key>Artist</key><string>ABBA</string>
<key>Composer</key><string>Anni-Frid Lyngstad; Benny Andersson; Bj&#246;rn Ulvaeus; Stig Anderson</string>
<key>Album Artist</key><string>ABBA</string>
<key>Album</key><string>Gold: Greatest Hits</string>
<key>Kind</key><string>MPEG audio file</string>
<key>Size</key><integer>3438811</integer>
<key>Genre</key><string>&#35199;&#27915;&#27969;&#34892;</string>
<key>Total Time</key><integer>213577</integer>
<key>Track Number</key><integer>4</integer>
<key>Rating</key><integer>100</integer>
<key>Year</key><integer>1992</integer>
<key>Date Modified</key><date>2010-08-30T18:45:03</date>
<key>Date Added</key><date>2010-10-08T00:31:49</date>
<key>Bit Rate</key><integer>128</integer>
<key>Sample Rate</key><integer>44100</integer>
<key>Track Type</key><string>File</string>
<key>File Folder Count</key><integer>-1</integer>
<key>Library Folder Count</key><integer>-1</integer>
<key>Location</key><string>file://localhost/E:/&#35199;&#27915;/ABBA/Gold-%20Greatest%20Hits/Mamma%20Mia%20%5B1975%5D.mp3</string>
</dict>

Attach the Chinese (Traditional Taiwan format) for your reference if needed,
http://www.mediafire.com/?ulesbwg6h5l5555

You scripts is great, especially for me, I personally hate iTunes, it can not read Flac and other file types,
If I can bypass it and generate XML in your great scripts, used by other application( include Flac, I actually test it and it works),
that's fantastic ,
but it's a pity, encounter Asian character issues.
Sincerely

Re: Export to iTunes library.xml

Posted: Thu Oct 07, 2010 10:06 pm
by kevinchg
nynaevelan wrote:This script is no longer in production, mark has a new plugin which exports/imports to itunes.
Thanks for the information,
I know that plugin, and actually I've try it couple days ago,
however , a condition there, You must install iTunes before you use it,
for me , I don't install iTunes, just like DC said, I just want to take advange of iTues XML format ,
and used or import by another application other than iTunes, for example, squeezeCenter, squeezecenter can
let you appoint a itunes XML and read it as its library,
there's a great advantage,
-----You can build some file format into XML that iTunes cannot allow to do, FLAC , APE, WMA....

Thanks to you anyway....

Re: Export to iTunes library.xml

Posted: Fri Oct 08, 2010 8:22 am
by nynaevelan
Ahh, I understand, hopefully you will be able to find a solution.