English 中文(简体)
仅为智能和用户创建的播放列表分析 uneses 库 xml
原标题:Parsing itunes library xml only for smart and user created playlists

我试图为 < em> itunes 10 < / em > 分析 < em> 音乐库 xml < / em > 。 要求只分析 < em> smart 用户创建的 < em > 播放列表,并跳过 Library、Musics、Tv shows.

智能播放列表有 SmartInfo Smart标准 。 例如,我有一个用户创建的名为图书馆和音乐的播放列表, 我如何区分它们和原始的Library 和包含我所有音乐的“em>音乐 ?

<key>Playlists</key>
<array>
    <dict>
        <key>Name</key><string>Library</string>
        <key>Master</key><true/>
        <key>Playlist ID</key><integer>893</integer>
        <key>Playlist Persistent ID</key><string>1BEAC6B526CA9EE0</string>
        <key>Visible</key><false/>
        <key>All Items</key><true/>
        <key>Playlist Items</key>
        <array>
        .....
        </array>
    </dict>
    ...
    ...
    <dict>
    <key>Name</key><string>Library</string>
    <key>Playlist ID</key><integer>1509</integer>
    <key>Playlist Persistent ID</key><string>8F9656FD7FC595B1</string>
    <key>All Items</key><true/>
    <key>Playlist Items</key>
    <array>
    ....
    </array>
    </dict>
</array>

我看到的唯一主要差异是 可见 < / em > 文本。 Master 无法用于 音乐, Tv shows , 因此也不能使用它。 假设根据 playlist id playlist 持续有效的 id 来区分。

最佳回答

在玩弄多种可能性之后,通过排除那些播放列表,加上以下3个密钥之一,取得了必要的结果:

<key>Distinguished Kind</key>
<key>Master</key>
<key>Folder</key>
问题回答

您必须排除那些带有这些密钥之一的密钥 。

<key>Distinguished Kind</key>
<key>Master</key>




相关问题
Signer not valid error

I ve created an ad hoc build of my app and would like another person to install it. I have their device ID (two actually) in the provisioning profile. My certificate is the same for ad hoc and app ...

is it reasonable to protect drm d content client side

Update: this question is specifically about protecting (encipher / obfuscate) the content client side vs. doing it before transmission from the server. What are the pros / cons on going in an approach ...

What is `mt=8` in iTunes links for the App Store?

Does anyone know the significance of the mt parameter in App Store Links? Sample link: http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=337319445&mt=8 It seems that any value ...

iTunes Plugin Programming: Intercept Events

Are there any good solutions for capturing events from within iTunes? I d like to build a plugin that sits inside of iTunes and respondes to rating changes for particular songs. For Windows they ...