iTunes Library

RSS for tag

Retrieve the properties of the media in an iTunes library.

iTunes Library Documentation

Posts under iTunes Library tag

13 Posts
Sort by:
Post not yet marked as solved
0 Replies
205 Views
Hello, We've an iOS application that can be launched on macOS (with the "designed for iPhone" available with Catalyst). This application request authorization on MPMediaLibrary and play MPMediaItem with an audio player. After accepted, the authorization status is well flagged as .authorized I can browse all MPMediaItem without issue and display them in my app. But, when it comes the time to convert the MPMediaItem file's URL in AVAudioFile with: AVAudioFile(forReading: fileURL) We got 2 warnings in the console: ExtAudioFile.cpp:211 about to throw -54: open audio file AVAEInternal.h:109 [AVAudioFile.mm:135:AVAudioFileImpl: (ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)): error -54 We finally get an exception with this error: Error Domain=com.apple.coreaudio.avfaudio Code=-54 "(null)" UserInfo={failed call=ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)} This working perfectly on iOS and iPadOS, but with Catalyst we always got this error whatever the audio (from iTunes library) we try to play. Why do we have this permission issue only on macOS ? There is something different to do to get permission on macOS ? thanks !
Posted
by JHW.
Last updated
.
Post not yet marked as solved
0 Replies
257 Views
Hi everyone, I'd like to write a one-off app to make some modifications to my own Music.app (aka iTunes) library. This is for content that I have stored using iTunes Match, so it's effectively a library that dates back to the iTunes years. However, from what I can see, APIs with modification support are essentially... nothing? I can get everything ready in a simple Swift command-line app using https://developer.apple.com/documentation/ituneslibrary, however I can't actually write any changes. It seems that the only modification solution available is actually still AppleScript. Everything there still works, and in theory I could do the majority of the logic using iTunesLibrary and then do the modifications with AppleScript via NSAppleScript. In order to do this, I just need an identifier that I can use to correlate items from each API. There is: iTunesLibrary: https://developer.apple.com/documentation/ituneslibrary/itlibmediaentity/1809728-persistentid AppleScript Item object for AppleScript has a "persistent ID" property which sounds like the same thing There's also an id property However, in my experiments it didn't appear that any of these correlated together Of course, I could possibly re-write the whole thing using AppleScript, but that would be slow and painful! So, posting here to see if anyone has any idea how or even if this can be done. Hope someone can help! Thanks in advance
Posted
by itsthejb.
Last updated
.
Post not yet marked as solved
0 Replies
371 Views
Hi there, I am trying to retrieve over 450+ urls of podcast episodes by using `api_url = f'https://itunes.apple.com/lookup?id={podcast_id}&entity=podcastEpisode&limit=200'. Even I modified the limit, I can only get 200 items. Anyone has an idea about this issue? Any resonse is appreciated!! Best!
Posted Last updated
.
Post not yet marked as solved
2 Replies
412 Views
I know that I can use the iTunes COM Interface for Windows to control the app or get info of the currently playing track etc. Now I was wondering if the new Apple Music Client for Windows also has this functionality? Sadly I couldn't find any documentation online.
Posted
by bjm021.
Last updated
.
Post not yet marked as solved
0 Replies
534 Views
I just encountered a problem, that my app was released to the App Store, the update was already visible in the App Store, but the request to https://itunes.apple.com/lookup?bundleId=***&country=*** was still returning previous app version information. After checking the server response, I realized that one of the response headers shows that the response is cached on the Apple server and that's the reason. X-Cache: TCP_MEM_HIT from a104-85-249-20.deploy.akamaitechnologies.com (AkamaiGHost/11.1.3-49328623) (-) Cache-Control: max-age=12989 . The question is: Can I safely use cache-busting solution to always get the latest results? It could be done like: https://itunes.apple.com/lookup?bundleId=***&country=***&t=<current_timestamp> I tested it and it works with the random timestamp, I always get not cached results.
Posted
by gffgbbg.
Last updated
.
Post not yet marked as solved
6 Replies
1.1k Views
Prior to iOS 17, I used AVAudioFile to open (for reading) the assetURL of MPMediaItem for songs that the user purchased through iTunes Store. With the iOS 17 Beta, this seems no longer possible as AVAudioFile throws this: ExtAudioFile.cpp:211 about to throw -54: open audio file AVAEInternal.h:109 [AVAudioFile.mm:135:AVAudioFileImpl: (ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)): error -54 Also can't copy the url to Documents directory because I get this: The file “item.m4a” couldn’t be opened because URL type ipod-library isn’t supported. This seems to be affecting other apps on the App Store besides mine, and it will reflect very badly on my app if this makes into the final iOS 17 because I have encouraged users to buy songs on iTunes Store to use with my app. Now there seems like there is no way to access them. Is this a known bug, or is there some type of workaround?
Posted
by oneway111.
Last updated
.
Post not yet marked as solved
0 Replies
384 Views
Hi all, Does anyone know which protocols are used to perform a backup of iOS the device? For example: with iTunes I can perform a backup of my iPhone What protocols is iTunes using to comunicate with the device. I'm using a Linux OS and would like to perform a backup of my iPhone local.
Posted
by clariion.
Last updated
.
Post not yet marked as solved
0 Replies
569 Views
Hi! Is it possible to access metadata information for the personal movie and tv show library? I mean information like the iTunes Store ID, languages, subtitles, has iTunes Extras and maybe even IMDb and TMDB IDs for each title, etc. Is there an API for that like the Apple Music API? I'm no full member of the Apple Developer Program yet, but I'd be very interested if access like with the Apple Music API would also be available for movies and tv shows.
Posted
by JSteinba.
Last updated
.
Post not yet marked as solved
0 Replies
664 Views
The following line of code worked fine in macOS 13.3 / Catalyst: try await MPMediaLibrary.default().addItem(withProductID: "1678639572") Since the 13.4 update it now throws an error: The operation couldn’t be completed. (MPErrorDomain error 11.) Although the Apple Music track with catalog Id 1678639572 does seem to get added to the library regardless. MPError.errorCode 11 is an undocumented value. Can someone please advise what error code 11 actually means, and if there's a workaround? I've raised this as feedback id FB12196635.
Posted
by dutton.
Last updated
.
Post not yet marked as solved
0 Replies
545 Views
Hi! While exporting a playlist as M3U or M3U8 there's an issue with the format of the #EXTINF line. According to M3U format (https://en.wikipedia.org/wiki/M3U), the artist name should be first and then the song name. Currently iTunes, while doing an export, is setting the title of the song and then the artist name. This should be fixed.
Posted Last updated
.
Post not yet marked as solved
2 Replies
1k Views
iTunes for Windows used to offer a COM interface and an additional VBScript interface. What does Music app for Windows offer (the preview is currently available in the Windows app store)? Here are a couple of more detailed points I am mainly concerned about: Is there a documented API somewhere? Where? What's the recommended technology to interact with the Music app on Windows? VBScript and the like are great for manipulating individual tracks, but usually are a little slow, when one wants to get data about the whole library. So is there a fast way of accessing/reading data (like the iTunes Library framework on macOS)? Can one access Apple Music via COM at all, even though the app is downloaded from the Windows app store (sandboxing)? Thanks for your help. (see also https://apple.stackexchange.com/q/459392/62735, if you want to earn Stack Overflow rep points)
Posted
by tagtraum.
Last updated
.