缓存的 iTunes 封面艺术
我需要从 iTunes 获取缓存的封面艺术。目前我正在使用脚本桥,但它只获取嵌入轨道中的封面。我也在这里尝试过这种方法
在不运行 iTunes 的情况下获取 iTunes 专辑封面
但它似乎被破坏了(至少在 iTunes 9.2 中)。有任何提示如何解决这个问题吗?
问候, 埃里克
更新
NSArray *artworks = [[track artworks] get];
for (CMTunesBridgeArtwork *art in artworks) {
ref.image = [art data];
break;
}
I need to fetch cached cover art from iTunes. Currently I'm working with the scripting bridge, but it only fetches covers that are embedded in the tracks. I've also tried this method here
Fetch iTunes album artwork without iTunes running
but it seems to be broken (at least in iTunes 9.2). Any hints how to solve this?
Regards,
Erik
Update
NSArray *artworks = [[track artworks] get];
for (CMTunesBridgeArtwork *art in artworks) {
ref.image = [art data];
break;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了解决这个问题,我解决了如下问题:
如果曲目不提供艺术作品,我会在其他专辑曲目中搜索任何艺术作品。在大多数情况下,至少有一条轨道应用了覆盖物。很奇怪但有效。
作为第三个选项,我将解析封面缓存 (.itc) 文件并使用其中的插图,但事实证明在几乎所有情况下这些缓存文件都是无用的,所以我现在只使用第一种方法。
问候,
埃里克
In order to work around this issue i solved it as follows:
If a track doesn't provide artwork, I search the other album tracks for any artwork. In most cases at least one track has a cover applied. Weird but works.
As a third option I'll parse the cover cache (.itc) files and use artwork from there, but it turned out in almost all cases these cache files are useless, so i only use the first method now.
Regards,
Erik