OklahomaGreyBeard / erlandplugins

Automatically exported from code.google.com/p/erlandplugins
0 stars 1 forks source link

CustomScan iTunes Import doesn't import if ' is present #72

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am using SC 7.3.3 - 25259 running on Windows Home Server and version 2.5
of CustomScan and 2.8 of Trackstat.

In iTunes I have 4639 songs with a rating. According to your excellent
DatabaseQuery plugin I have 3828 songs with a rating in SC. I am using your
excellent CustomScan/Trackstat combo to write the history file with ratings
and importing it to iTunes and also regulary import the iTunes Music
Library.xml file to SC so my thought was that these numbers should be much
closer. 

I have tried to track down some files that have a rating in iTunes but not
in SC and found that many of them (all?) has a ' in either artist, album or
title. I have iTunes set to automatically organize the tracks, and
therefore the Location-key in the iTunes Library.xml contains a '.

I have included belov the xml-snippet from the iTunes Library.xml for two
of these files. This file does show up in SC without a rating. I would be
very happy if you could look into this :-)

        <key>5026</key>
        <dict>
            <key>Track ID</key><integer>5026</integer>
            <key>Name</key><string>These Boots Are Made for Walkin'</string>
            <key>Artist</key><string>Nancy Sinatra</string>
            <key>Album Artist</key><string>Nancy Sinatra</string>
            <key>Album</key><string>The Essential Nancy Sinatra</string>
            <key>Genre</key><string>Pop</string>
            <key>Kind</key><string>Kjøpt AAC-lydfil</string>
            <key>Size</key><integer>5469805</integer>
            <key>Total Time</key><integer>163258</integer>
            <key>Disc Number</key><integer>1</integer>
            <key>Disc Count</key><integer>1</integer>
            <key>Track Number</key><integer>13</integer>
            <key>Year</key><integer>2006</integer>
            <key>Date Modified</key><date>2009-02-24T15:44:54Z</date>
            <key>Date Added</key><date>2008-07-28T06:59:06Z</date>
            <key>Bit Rate</key><integer>256</integer>
            <key>Sample Rate</key><integer>44100</integer>
            <key>Comments</key><string>Adjusted by iVolume 01/08/2009 08:16:24
</string>
            <key>Play Count</key><integer>4</integer>
            <key>Play Date</key><integer>3286439561</integer>
            <key>Play Date UTC</key><date>2008-02-21T10:52:41Z</date>
            <key>Release Date</key><date>2006-03-13T00:00:00Z</date>
            <key>Rating</key><integer>80</integer>
            <key>Album Rating</key><integer>80</integer>
            <key>Album Rating Computed</key><true/>
            <key>Artwork Count</key><integer>1</integer>
            <key>Sort Album</key><string>Essential Nancy Sinatra</string>
            <key>Persistent ID</key><string>54427493B7E0DFAA</string>
            <key>Track Type</key><string>File</string>
            <key>Purchased</key><true/>

<key>Location</key><string>file://localhost/C:/Users/Papa/Music/iTunes/iTunes%20
Music/Nancy%20Sinatra/The%20Essential%20Nancy%20Sinatra/13%20These%20Boots%20Are
%20Made%20for%20Walkin'.m4a</string>
            <key>File Folder Count</key><integer>4</integer>
            <key>Library Folder Count</key><integer>1</integer>
        </dict>

        <key>16014</key>
        <dict>
            <key>Track ID</key><integer>16014</integer>
            <key>Name</key><string>Gangbangin' 101</string>
            <key>Artist</key><string>Snoop Dogg</string>
            <key>Album Artist</key><string>Snoop Dogg</string>
            <key>Album</key><string>Tha Blue Carpet Treatment</string>
            <key>Genre</key><string>Hip-Hop/Rap</string>
            <key>Kind</key><string>Kjøpt AAC-lydfil</string>
            <key>Size</key><integer>8210467</integer>
            <key>Total Time</key><integer>242893</integer>
            <key>Disc Number</key><integer>1</integer>
            <key>Disc Count</key><integer>1</integer>
            <key>Track Number</key><integer>8</integer>
            <key>Track Count</key><integer>21</integer>
            <key>Year</key><integer>2006</integer>
            <key>Date Modified</key><date>2009-01-08T08:01:53Z</date>
            <key>Date Added</key><date>2009-01-06T17:46:47Z</date>
            <key>Bit Rate</key><integer>256</integer>
            <key>Sample Rate</key><integer>44100</integer>
            <key>Comments</key><string>Adjusted by iVolume 01/08/2009 08:01:53
</string>
            <key>Play Count</key><integer>7</integer>
            <key>Play Date</key><integer>3317885628</integer>
            <key>Play Date UTC</key><date>2009-02-19T09:53:48Z</date>
            <key>Release Date</key><date>2006-11-21T08:00:00Z</date>
            <key>Rating</key><integer>40</integer>
            <key>Album Rating</key><integer>60</integer>
            <key>Album Rating Computed</key><true/>
            <key>Artwork Count</key><integer>1</integer>
            <key>Persistent ID</key><string>54427493B7E0EF81</string>
            <key>Explicit</key><true/>
            <key>Track Type</key><string>File</string>
            <key>Purchased</key><true/>

<key>Location</key><string>file://localhost/C:/Users/Papa/Music/iTunes/iTunes%20
Music/Snoop%20Dogg/Tha%20Blue%20Carpet%20Treatment/08%20Gangbangin'%20101.m4a</s
tring>
            <key>File Folder Count</key><integer>4</integer>
            <key>Library Folder Count</key><integer>1</integer>
        </dict>

Original issue reported on code.google.com by mariw...@gmail.com on 3 Mar 2009 at 10:22

GoogleCodeExporter commented 8 years ago
Any progress on this? It is a bit anoying to have several hundred files that are
rated in iTunes and not in SqueezeCenter...

Original comment by mariw...@gmail.com on 20 Mar 2009 at 8:55

GoogleCodeExporter commented 8 years ago
Lots more info on this here: 
http://forums.slimdevices.com/showthread.php?t=61055

It's not just ' but also [ ] & ?

Original comment by chunkywi...@gmail.com on 9 Aug 2009 at 6:58

GoogleCodeExporter commented 8 years ago
I can confirm chunkywizard. On my system it definitely applies to [ ] & 

Maybe it aplies to all reserved characters?
           "! # $ % & ' ( ) * + , / : ; = ? @ [ ]'

See also http://forums.slimdevices.com/showthread.php?t=66475

Original comment by helmut.s...@gmail.com on 10 Aug 2009 at 9:48