• Das kreative Thema des Monats Oktober wird vor allem diejenigen unter Euch besonders ansprechen, denen Do-it-yourself quasi im Blut liegt. Zeigt uns Eure Improvisationskünste oder fotografiert, was andere Leute sich so im Alltag zusammengestrickt haben. --> Zum Mitmachen bitte hier klicken

iTunes.xml

DubiDuh

Zwiebelapfel
Registriert
20.05.08
Beiträge
1.288
Hallo Forum,

ich hab eine Frage: Gibt es irgendwo im Netz eine Übersicht, wofür die einzelnen Einträge in der XML stehen?
Hier ist mal ein Auszug:

Code:
        <key>1818</key>
        <dict>
            <key>Track ID</key><integer>1818</integer>
            <key>Name</key><string>Legenden</string>
            <key>Artist</key><string>Sportfreunde Stiller</string>
            <key>Album</key><string>La Bum</string>
            <key>Genre</key><string>Pop</string>
            <key>Kind</key><string>MPEG-Audiodatei</string>
            <key>Size</key><integer>7032815</integer>
            <key>Total Time</key><integer>269270</integer>
            <key>Track Number</key><integer>11</integer>
            <key>Year</key><integer>2007</integer>
            <key>Date Modified</key><date>2008-11-23T23:45:54Z</date>
            <key>Date Added</key><date>2008-12-01T11:07:39Z</date>
            <key>Bit Rate</key><integer>192</integer>
            <key>Sample Rate</key><integer>44100</integer>
            <key>Comments</key><string>one group to rule them all</string>
            <key>Artwork Count</key><integer>1</integer>
            <key>Persistent ID</key><string>43EA144A5572DC18</string>
            <key>Disabled</key><true/>
            <key>Track Type</key><string>File</string>
            <key>Location</key><string>file://localhost/C:/Users/username/Music/iTunes/iTunes%20Music/Music/Sportfreunde%20Stiller/La%20Bum/11%20Legenden.mp3</string>
            <key>File Folder Count</key><integer>5</integer>
            <key>Library Folder Count</key><integer>1</integer>
        </dict>

Wo finde ich eine eindeutige ID, die den Track unter allen Besitzern gleichartig macht?
 
hier steht ein bisschen was darüber: Link

The collection of tracks is a dict, keyed by the track ID. Within each track, also a dict, the keys include Track ID, Name, Artist, Album, Genre, Kind, Size, Total Time, Disc Number, Disc Count, Track Number, Track Count, Year, Date Modified, Date Added, Bit Rate, Sample Rate, Play Count, Play Date, Play Date UTC, File Type, File Creator, Location, File Folder Count, and Library Folder Count. Although most of these are self-explanatory, a few bear further explanation.

Kind refers to the file encoding. Valid values include AAC audio file and MPEG audio file.

Play Date and Play Date UTC contain the date of the last time the track was played to the end, in local and UTC time, respectively.

File Type and File Creator contain the Mac-OS-specific file type and creator, a long integer that indicates the program that created the file, and a particular file type. These long integers are usually represented as a mnemonic four-character code.

Location contains the URL of the audio file, with a file URL scheme.

Das meiste ist wirklich selbsterklärend. Der Link ist schon von 2004, daher wird sich schon was geändert haben. Diese ID könnte die persistent ID sein.
 
Hallo... Persistent bezieht sich dabei leider auf die Mediathek eines jeden Users. Das bedeutet, dass es keine Möglichkeit gibt, Songs eindeutig zu identifizieren. Schade, aber naja ... muss ich mir was anderes ausdenken.