# \[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:** 20

<div class="post-metadata">

**Author:** ![KFClover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/ce7236/32.png) [@KFClover](https://community.mp3tag.de/u/KFClover)\
**Post date:** [April 3, 2024, 6:47am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/408 "2024-04-03T06:47:58Z")

</div>

Thanks! How would that Action work?

---

<div class="post-metadata">

**Author:** ![KFClover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/ce7236/32.png) [@KFClover](https://community.mp3tag.de/u/KFClover)\
**Post date:** [April 3, 2024, 6:52am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/409 "2024-04-03T06:52:26Z")

</div>

I am using the AIFF format since it is the only lossless format that the Music app (Apple) reads the ID3 tag of. I noticed when the disc number field and track number field contain two numbers separated by a "/", Apple automatically uses the number behind the "/" to fill up the total discs field and the total tracks field.

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [April 3, 2024, 10:36am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/410 "2024-04-03T10:36:07Z")

</div>

> [@KFClover](#):
>
> I am using the AIFF format since it is the only lossless format that the Music app (Apple) reads the ID3 tag of.

You can also use the Apple Lossless ALAC format, it has wider use cases with other players and more metadata flexibility even in the Apple Music and iTunes apps.

> [@KFClover](#):
>
> I noticed when the disc number field and track number field contain two numbers separated by a "/", Apple automatically uses the number behind the "/" to fill up the total discs field and the total tracks field.

You may need to create an Action to run on any of your AIF files after the script if it isn't going to be changed for this. Add a new Action and call it something like Reformat AIF Disc and Track, and add two Format Value lines.  
For DISCNUMBER `%discnumber%/%totaldiscs%`  
For TRACK `%track%/%totaltracks%`

You could use convert Tag-Tag or a Format Value Quick Action if this is a one-time operation. But saving it as a new Action will keep it available any time you need 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:** [April 3, 2024, 4:07pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/411 "2024-04-03T16:07:38Z")

</div>

> [@KFClover](#):
>
> How would that Action work?

If your use case is the Apple Music app (or iTunes and other Apple playback software) I will very much suggest MotleyG's suggestion to use Apple Lossless. This script is tailored towards use of the MPEG4 container, and Apple uses that for ALAC. It will save you the trouble of using actions after running the script. It is non-trivial to combine the disc number as you want it in the script.

---

<div class="post-metadata">

**Author:** ![whoisev](https://community.mp3tag.de/user_avatar/community.mp3tag.de/whoisev/32/16662_2.png) [@whoisev](https://community.mp3tag.de/u/whoisev)\
**Post date:** [April 3, 2024, 5:51pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/412 "2024-04-03T17:51:29Z")

</div>

Hey, I'm having a problem with the Apple Music 3 (Web) script. Whenever I use my personal hotspot, I would get the error code 12157 when connecting to [music.apple.com](http://music.apple.com). Whenever I use a different network, I get the error code 12007. Both networks have internet access. The only time it works is when connected to my house wifi. I'm not sure if something is blocked since I can access [music.apple.com](http://music.apple.com) on both networks and they work perfectly fine. Anyway to fix this? I'm on Windows 10 build 19045.

---

<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:** [April 3, 2024, 9:19pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/413 "2024-04-03T21:19:59Z")

</div>

> [@whoisev](#):
>
> Anyway to fix this?

Both are client side network errors, 12007 is **ERROR\_WINHTTP\_NAME\_NOT\_RESOLVED** and 12157 is **ERROR\_WINHTTP\_SECURE\_CHANNEL\_ERROR**. Looks like some proxy or similar is between. What happens if you go to this link [‎Apple&nbsp;Music - Web Player](https://music.apple.com/us/search?l=en&term=Spritney+Bears)?

---

<div class="post-metadata">

**Author:** ![whoisev](https://community.mp3tag.de/user_avatar/community.mp3tag.de/whoisev/32/16662_2.png) [@whoisev](https://community.mp3tag.de/u/whoisev)\
**Post date:** [April 4, 2024, 2:03pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/414 "2024-04-04T14:03:07Z")

</div>

The link you sent works fine on my end, even with both networks. Not sure if its the program itself since it has worked before on these networks until recently. I will double check the network settings just to make sure, unless there is a network setting inside mp3tag.

Update: The script is working with the network I am on! The only setting I changed was the timeout in the networking settings on mp3tag so not sure if that did the trick. Although I won't get my hopes to high since it has stopping working after a few weeks but I will let you know. Thanks AreDigg!

---

<div class="post-metadata">

**Author:** ![KFClover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/ce7236/32.png) [@KFClover](https://community.mp3tag.de/u/KFClover)\
**Post date:** [April 5, 2024, 2:15pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/415 "2024-04-05T14:15:58Z")

</div>

Thanks for the explanation @MotleyG!

---

<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:** [April 5, 2024, 4:10pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/416 "2024-04-05T16:10:50Z")

</div>

I believe some of Apple's Services (including Apple Music) had some issues 2 days ago. So the failure of the script then could well be related to that(?)

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [April 12, 2024, 4:19pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/417 "2024-04-12T16:19:24Z")

</div>

A post was split to a new topic: [Copy one tag field to another](https://community.mp3tag.de/t/copy-one-tag-field-to-another/64381)

---

<div class="post-metadata">

**Author:** ![anon56277349](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/35a633/32.png) [@anon56277349](https://community.mp3tag.de/u/anon56277349)\
**Post date:** [May 13, 2024, 5:25pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/418 "2024-05-13T17:25:30Z")

</div>

Guys, how do I use the Apple Music 4 (API) version of the script?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [May 13, 2024, 5:49pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/419 "2024-05-13T17:49:27Z")

</div>

See the documentation:

> **[Using user-contributed Tag Sources – Mp3tag Documentation](https://docs.mp3tag.de/tag-sources/archive/)**
>
> Instructions on how to download and use user-contributed Tag Sources. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

**Author:** ![anon56277349](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/35a633/32.png) [@anon56277349](https://community.mp3tag.de/u/anon56277349)\
**Post date:** [May 13, 2024, 6:18pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/420 "2024-05-13T18:18:20Z")

</div>

Yeah, I meant doing the proxy thing with apple music cookies. Sorry, I was not clear with my question.

---

<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:** [May 14, 2024, 12:03pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/421 "2024-05-14T12:03:17Z")

</div>

What have you tried and what wasn’t working?

---

<div class="post-metadata">

**Author:** ![anon56277349](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/35a633/32.png) [@anon56277349](https://community.mp3tag.de/u/anon56277349)\
**Post date:** [May 14, 2024, 12:38pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/422 "2024-05-14T12:38:37Z")

</div>

Well, I don't know where to start from. I don't know how to set up a proxy using the python file in the script folder.

---

<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:** [May 21, 2024, 6:57am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/423 "2024-05-21T06:57:59Z")

</div>

I'd love a guide on this as well.

---

<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:** [May 21, 2024, 9:03am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/424 "2024-05-21T09:03:27Z")

</div>

If I were to create a guide I need to know where people get stuck. I have already written some information in this thread.

---

<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:** [May 29, 2024, 8:50pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/425 "2024-05-29T20:50:43Z")

</div>

Does anyone here know how I should format the Apple Music and iTunes `.SRC` files so that I can yield Czech-language results?

---

<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:** [May 30, 2024, 8:48pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/426 "2024-05-30T20:48:50Z")

</div>

Look at how the other store/language files are created and use for language code cs. If needed, the country code of Czechia it is cz as I guess only that local store returns in Czech language. The regional language code is cs-cz.

---

<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:** [May 30, 2024, 9:09pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/427 "2024-05-30T21:09:30Z")

</div>

I tried it for Apple Music, which successfully yielded Czech-language results. But even after changing the country _and_ language code for iTunes, it still yields English-language results for some reason.

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

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