[WS] Apple Music

Ok, try this:

  1. Create this file and call it localhost.conf:
[dn]
CN=localhost

[req]
distinguished_name = dn

[ext]
subjectAltName=DNS:localhost
keyUsage=digitalSignature
extendedKeyUsage=serverAuth
  1. Then you can run the OpenSSL command openssl req -x509 -out localhost.pem -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -days 28 -extensions ext -config localhost.conf

This should create a self-signed cert for localhost. You could probable modify some options to suit you more.

still getting 401 unauthorized error

Sat, 20 Jul 2024 21:22:08 GMT https://amp-api.music.apple.com/v1/catalog/it/search?types=albums&limit=10&term=The+Killers+Hot+Fuss
127.0.0.1 - - [20/Jul/2024 15:22:09] "GET /v1/catalog/it/search?types=albums&limit=10&term=The+Killers+Hot+Fuss HTTP/1.1" 401 -
-- ERROR -- 401

Ah, ok, the problem is not the web certs, it is the token which you are supposed to provide. I have made a modification so it tries to use a generic one that other have used.

1 Like

Thank you @AreDigg, it's working, how can i get this token for future issues? on github there's a ton of scritps

I have put all of my scripts also on GitHub. For now they are just copied, so no new changes.

1 Like

I'd also be interested in getting and using the token.

can you advise @AreDigg?

Which token are you looking for?

I'm on version 3.7 and would like to update. Is there a changelog I could read to see what changed ?

I don’t have a changelog, you have to go through this thread or you could also see the changes on the GitHub commit history.

Thank you for the response. Does this newer version writes the UPC value ? That's the only thing I'm missing otherwise the older version works wonders.

Hello, thank you for these resources that have always worked like a charm with my iPhone.

For a few weeks now, I’ve noticed that I can no longer add music to my Apple Watch. It tells me that I need an Apple Music subscription :slight_smile: However, I’ve never had a subscription, and the music plays perfectly on my iPhone without any issues. But I can’t seem to transfer the music to my Apple Watch anymore. Do you have any ideas?

Thank you!

I don’t have a Watch som can’t really tell, maybe other here knows more? From what I can read from Apples documentation it should be possible to play music you have transferred to the Apple Watch, and it says that Apple Music is not required.

1 Like

Thank you for your response and research. I’m not sure, but there seems to be a link somewhere with tags because when I remove them, the issue no longer occurs. Specifically, ITUNESCATALOGID the problem with this tag is that when I ask to play the track in question, it ends up playing something completely different

Likely that Apple considers files with those tags to be Apple Music files and request them from their servers. But it should still be the same music.

1 Like

I think this is the likely cause.

What's likely happening in @kelc's scenario is attempts to sync music with iTUNESCATELOGID tag to their Apple Watch is causing the Apple watch to try and "call home" to Apple Music for DRM/playback, seeing as iTUNESCATALOGID is the internal ID linking a song to the relevant Apple Music record.

I wonder if this is done for some reason to do with the Apple Watch having significantly lower storage capacity than an iPhone, so it is trying to prioritise streaming from Apple Music.

I guess it could also be a case of because the song contains an iTUNESCATALOGID tag, the actually file may not be synced to the Apple watch at all (again, a compromise for the lower storage on an Apple Watch) and just a case of the iTUNESCATELOGID being added to the "internal library" of the watch as a reference for playback?

I’m not explaining everything, though, because I was still able to sync certain albums to the watch with this infamous ITUNESCATALOGID. This generally worked right after adding them to the phone. I also tried adding the ITUNESACCOUNT tags, but the message still appeared anyway. I even tried logging out of my iTunes account on the phone (I assume it also logs out on the watch). I thought this would stop the check with Apple’s servers, and it seemed to be the case until I tried again yesterday, and the message reappeared. In short, I ended up getting lost in my own assumptions.:slight_smile:

16 posts were split to a new topic: Specific album doesn't show up when using the Apple Music WS

I have updated both the iTunes API script and Apple Music Web
Changes are
iTunes API 2.1

  • Option in settings to turn on the search for single tracks to help in finding albums, this is helpful if you only know a song from the album, or if iTunes database does not index the album. Turned off by default

Apple Music (Web) 3.16

  • Added conversion from date-string received from the Web API, so it matches iTunes format
3 Likes

Thanks... but running them (Web or API) I only get an error message:
ERROR(Settings): expected value, got '&' (38)

Did I have to "install" anything else than the scripts in my sources directory
(copied the "Apple Music Web.inc" and "iTunes API v2.inc" as well as the Germany related *.src files )

Yes, Settings file as the error code implies. Usually, start with install all files as an author expects, then do your "modifcations" Please!!!!!