简体   繁体   English

iTunesLibrary Swift 5.3 macOS

[英]iTunesLibrary Swift 5.3 macOS

After reading the documentation and looking through the header files of the iTunesLibrary frameworks I am unable to determine how, or if it's even possible, to manually specify the iTunes/Music library file to read?在阅读文档并查看 iTunesLibrary 框架的头文件后,我无法确定如何,或者是否可能,手动指定要读取的 iTunes/音乐库文件?

The documentation within the header files indicate the system dynamic library loads the 'Default' library.头文件中的文档表明系统动态库加载“默认”库。 The only way I have found so far to load another library is to use the +click method to manually choose the library to be used, then quit the Music app and the last chosen library become the default.到目前为止,我发现加载另一个库的唯一方法是使用 +click 方法手动选择要使用的库,然后退出音乐应用程序,最后选择的库成为默认库。

Is there not a way to specify a file?没有办法指定文件吗? The mediaFolderLocation and musicFolderLocation methods are defined as 'get only' methods. mediaFolderLocation 和 musicFolderLocation 方法被定义为“仅获取”方法。

After lots and lots of research I have determined there is not a way to specify the particular library you want to open.经过大量研究,我确定没有办法指定要打开的特定库。 It automatically refers to the system 'default' library.它自动引用系统“默认”库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM