# \[WS\] Apple Music

**URL:** <https://community.mp3tag.de/t/ws-apple-music/51184>\
**Category:** Web Sources Scripts\
**Created:** [December 14, 2020, 12:58am UTC](https://community.mp3tag.de/t/ws-apple-music/51184 "2020-12-14T00:58:26Z")\
**Posts on this page:** 20\
**Page:** 17

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [October 13, 2023, 8:42pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/346 "2023-10-13T20:42:55Z")

</div>

Do you still need the individual country settings from the previous version (e.g., `&Apple Music#Settings (Deutsch).settings`, `&Apple Music#Settings (English).settings`, `&Apple Music#Settings (Français).settings`, etc.) in this new version? I tried editing some files without them, and it gave me an error message, which suggests to me that they're still necessary and should be incorporated in the ZIP file.

---

<div class="post-metadata">

**Author:** ![johannes.amble](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@johannes.amble](https://community.mp3tag.de/u/johannes.amble)\
**Post date:** [October 16, 2023, 6:57am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/347 "2023-10-16T06:57:35Z")

</div>

Do you mean that the Producer role is not available through the source, event though there is such a role (with one or more names) among the credits on Apple Music? If yes, why is that?

---

<div class="post-metadata">

**Author:** ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)\
**Post date:** [October 17, 2023, 11:25pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/348 "2023-10-17T23:25:39Z")

</div>

> [@Zyntaxyz](#):
>
> Is there a way to get composer info from the song credits?

No, they are not part of the json.

---

<div class="post-metadata">

**Author:** ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)\
**Post date:** [October 17, 2023, 11:26pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/349 "2023-10-17T23:26:36Z")

</div>

> [@mirogeorgiev97](#):
>
> I tried editing some files without them, and it gave me an error message, which suggests to me that they're still necessary and should be incorporated in the ZIP file.

They are removed from the files, so if you get an error, you have done something that causes it.

---

<div class="post-metadata">

**Author:** ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)\
**Post date:** [October 25, 2023, 5:23pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/350 "2023-10-25T17:23:33Z")

</div>

I have posted a new beta version of the 4.0 version. It should give you the extra credits, as well as other information not available on the 3.x version.

It requires that you run the python web server as a proxy. And because of https, you have to create certificates, so in the same folder as the python file you should have a `certificate.pem` and a `private-key.pem`. It probably have to be authorized by your OS if it is self-signed as well so that you don't get errors from MP3Tag.

If you provide the "media user token"-cookie from your web browser, if you are an Apple Music subscriber, it should be able to add lyrics as well. In that case you have to change the source to your store country as well.

I realize this is a cumbersome approach, so I am not sure if I will keep posting this here anymore. Maybe noone is using it. I will maybe be able to make it a bit more user friendly later. But if you are using the version 4, please tell me.

---

<div class="post-metadata">

**Author:** ![460N](https://community.mp3tag.de/user_avatar/community.mp3tag.de/460n/32/12550_2.png) [@460N](https://community.mp3tag.de/u/460N)\
**Post date:** [October 26, 2023, 4:32pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/351 "2023-10-26T16:32:48Z")

</div>

Hi AreDigg,

Can you help me how to create certificate.pem and private-key.pem on Mac OS?

Thank you so much for your scripts, I use them on the daily basis for all my music library.

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 5, 2023, 11:20pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/352 "2023-11-05T23:20:04Z")

</div>

Could someone help me restore "Various Artists" as a viable option for `OutputTo "ALBUMARTIST"`? Currently, I have it set up like this:

```auto
OutputTo ALBUMARTIST
json_select "artistName"
SayRest
Say "|"

```

The issue that arises is that it defaults to `OutputTo "ARTIST"`, so instead of the album artist being "Various Artists," it's any individual artist. Changing the json\_select to anything other than `json_select "artistName"` (e.g., `json_select "containerArtistName"`) simply eliminates the "Various Artists" option completely. I'd rather not have to manually add "Various Artists" every time, so any help is appreciated

---

<div class="post-metadata">

**Author:** ![Salem874](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@Salem874](https://community.mp3tag.de/u/Salem874)\
**Post date:** [November 7, 2023, 3:39pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/353 "2023-11-07T15:39:18Z")

</div>

I am really interested in this.

@AreDigg Is there a guide on the certificate/setup needed to implement this locally for a user who might wish to?

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 7, 2023, 4:18pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/354 "2023-11-07T16:18:11Z")

</div>

I'm not using it precisely because it seems so cumbersome in comparison to what I've been doing now, which is simply editing the `.INC` file from [Apple Music for MP3Tag v3.10.zip](https://community.mp3tag.de/uploads/short-url/1LWZ3rq3Vkpu0MppZIfbmyWETHL.zip) on Notepad. I want to know what json\_select can restore "Various Artists" as a viable option for the `OutputTo "ALBUMARTIST"` category. Right now, I've been using `json_select "artistName"` because `json_select "containerArtistName"` doesn't work. `json_select "artistName"` works for the most part, but a flaw in this approach only arises whenever I come across an album with "Various Artists," wherein every track ends up having a different `OutputTo "ALBUMARTIST"` because it has a different `OutputTo "ARTIST"` (e.g., instead of the Album Artist being "Various Artists" and the individual Artists being "Nobuo Uematsu," "Masashi Hamauzu," "Kumi Tamioka," and "Hitoshi Sakimoto," every track with "Nobuo Uematsu" as the Artist will be assigned "Nobuo Uematsu" in Album Artist as well, every track with "Masashi Hamauzu" as the Artist with be assigned "Masashi Hamauzu" in Album Artist, etc.). What do I need to do in the `.INC` file to make "Various Artists" work again?

---

<div class="post-metadata">

**Author:** ![Diaub](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b4bc9f/32.png) [@Diaub](https://community.mp3tag.de/u/Diaub)\
**Post date:** [November 7, 2023, 8:26pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/355 "2023-11-07T20:26:40Z")

</div>

Just today I started getting a "No matches for your search criteria" error. It's happening for all searches.

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 7, 2023, 8:46pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/356 "2023-11-07T20:46:56Z")

</div>

Yep, you're not alone: the more specific the search, the more likely the error message will appear. By contrast, only the vaguest, most generic search works, which is frustrating.

---

<div class="post-metadata">

**Author:** ![Diaub](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b4bc9f/32.png) [@Diaub](https://community.mp3tag.de/u/Diaub)\
**Post date:** [November 7, 2023, 10:11pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/358 "2023-11-07T22:11:01Z")

</div>

> Yep, you're not alone: the more specific the search, the more likely the error message will appear. By contrast, only the vaguest, most generic search works, which is frustrating.

How did you get any searches to work?

I searched "Jason" and still got an error. So I tried "a", and an error returned.

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 7, 2023, 10:31pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/359 "2023-11-07T22:31:47Z")

</div>

I looked up "Handel: Concerti Grossi," and the first search result was exactly the one I was looking for. I have no idea why it worked for me, yet nothing seemingly works for you. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Diaub](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b4bc9f/32.png) [@Diaub](https://community.mp3tag.de/u/Diaub)\
**Post date:** [November 8, 2023, 12:03am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/360 "2023-11-08T00:03:35Z")

</div>

Just tried again and it's working now. Perhaps I just needed to restart the application or my internet connection was faulty.

---

<div class="post-metadata">

**Author:** ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)\
**Post date:** [November 9, 2023, 12:22am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/361 "2023-11-09T00:22:50Z")

</div>

No, but any help to set up secured web server should lead you on the right track.

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 9, 2023, 1:41am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/362 "2023-11-09T01:41:40Z")

</div>

Well, [Apple Music for MP3Tag v3.10.zip](https://community.mp3tag.de/uploads/short-url/1LWZ3rq3Vkpu0MppZIfbmyWETHL.zip) has stopped working again, and this time, it's more insistent in not working. It will not recognize any iTunes Album ID at all, which is usually the safest bet to ensure you get exactly the album metadata you want. Meanwhile, [iTunes API for Mp3Tag 1.8.zip](https://community.mp3tag.de/uploads/short-url/aaUc45vCoZi7ya6Is1ifHv3qEKh.zip), which hasn't been updated since 06-04-2021, works just fine. I only use Apple Music web script because iTunes doesn't have a dedicated `OutputTo "COMPOSER"` category.  
I honestly don't know what to do anymore. I don't know the first thing about Python coding or setting up proxy servers.

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 9, 2023, 2:17am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/363 "2023-11-09T02:17:30Z")

</div>

Someone help me make sense of this: How exactly am I supposed to edit this?

 ![image](https://community.mp3tag.de/uploads/default/original/2X/0/0af77ae7d44a0164c3877acb8780de067e9e34c2.png)

---

<div class="post-metadata">

**Author:** ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)\
**Post date:** [November 11, 2023, 6:22pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/364 "2023-11-11T18:22:01Z")

</div>

> [@mirogeorgiev97](#):
>
> has stopped working again

It is working fine for me?

> [@mirogeorgiev97](#):
>
> Someone help me make sense of this: How exactly am I supposed to edit this?

Why you want to edit it? It is like plain text however.

> [@mirogeorgiev97](#):
>
> I don't know the first thing about Python coding or setting up proxy servers.

You need to install Python 3 and get certificates for a web server. You can create the certificates yourself if you run it locally on the same machine. The easiest is to search for something like "How To Create a Self-Signed SSL Certificate".

You should end up with a certificate file in PEM format, which you can call `certificate.pem` and a corresponding private key you can call `private-key.pem` and copy to the same place you have the Python script.

For the hostname (CN) when creating the certificate, it also depends on your OS and setup, but entering `*` should work, or you can use `localhost` or `127.0.0.1`. If you use another hostname you have to edit the Web Source file. to reflect that.

You most likely also need to add the certificate to the trust store on Windows or key access on Mac if it is self-signed.

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [November 12, 2023, 7:05am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/365 "2023-11-12T07:05:04Z")

</div>

> [@AreDigg](#):
>
> It is working fine for me?

It is working for me here too, but it stopped working for several days.

---

<div class="post-metadata">

**Author:** ![taggert](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@taggert](https://community.mp3tag.de/u/taggert)\
**Post date:** [November 12, 2023, 2:07pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/366 "2023-11-12T14:07:23Z")

</div>

I just stumble across this track level metadata goldmine:

> **[Now And Then by The Beatles](https://music.apple.com/us/song/now-and-then/1713197541)**
>
> Listen to Now And Then by The Beatles on Apple Music. 2023. Duration: 4:08

It includes lyrics and a very rich list of contributors. I was wondering if it is possible to pull a page per track and if so has anyone tried pulling this data yet?

[Previous page](https://community.mp3tag.de/t/ws-apple-music/51184.md?page=16)

[Next page](https://community.mp3tag.de/t/ws-apple-music/51184.md?page=18)
