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

<div class="post-metadata">

**Author:** ![oempaloempa](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/o/a3d4f5/32.png) [@oempaloempa](https://community.mp3tag.de/u/oempaloempa)\
**Post date:** [December 21, 2022, 12:12pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/222 "2022-12-21T12:12:45Z")

</div>

Normally, in W10, you can go to start, run, and enter this command:

%appdata%\Mp3tag\data\sources

---

<div class="post-metadata">

**Author:** ![KGB](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@KGB](https://community.mp3tag.de/u/KGB)\
**Post date:** [December 21, 2022, 12:28pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/223 "2022-12-21T12:28:47Z")

</div>

Publisher or Label & UPC please.

---

<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:** [December 21, 2022, 12:47pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/224 "2022-12-21T12:47:36Z")

</div>

Or even safer: Use File\>Open Configuration folder  
(as that may vary, depending on the kind of installation method)

---

<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:** [December 21, 2022, 6:17pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/225 "2022-12-21T18:17:48Z")

</div>

Do I need to put # before RegexpReplace to turn that off? Or will that mess things up, and there is different way to go about this?

---

<div class="post-metadata">

**Author:** ![CosmiKyber](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/838e76/32.png) [@CosmiKyber](https://community.mp3tag.de/u/CosmiKyber)\
**Post date:** [December 21, 2022, 7:18pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/226 "2022-12-21T19:18:37Z")

</div>

I've been tinkering with this script and managed to add back the missing ITUNESARTISTID and ITUNESCOMPOSERID tags (where available) and fix a few tag output bugs.

Anything I've added that doesn't provide extra functionality or fixes has been commented out, but you can uncomment them if they suit your needs.  
[Apple Music - Updated.zip](https://community.mp3tag.de/uploads/short-url/AdT4mnczq0UQi96XwmafurLVgv1.zip) (3.6 KB)

---

<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:** [December 23, 2022, 6:58pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/227 "2022-12-23T18:58:39Z")

</div>

I have added a new version, the bigger change is now searching directly in Apple Music, not via iTunes API.

Apple Music for MP3Tag v3.1.zip

[Apple Music for MP3Tag v3.2.zip](https://community.mp3tag.de/uploads/short-url/asZLQI4QasrpuPk1z9LRrOZlGg2.zip) (25.7 KB)

---

<div class="post-metadata">

**Author:** ![lextor](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/958977/32.png) [@lextor](https://community.mp3tag.de/u/lextor)\
**Post date:** [December 24, 2022, 12:10pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/228 "2022-12-24T12:10:56Z")

</div>

Is there a way to integrate a part of this script to get label and UPC?

Apple Music Barcodes/ISRCs

> **[GitHub - ToadKing/apple-music-barcode-isrc](https://github.com/ToadKing/apple-music-barcode-isrc)**
>
> Contribute to ToadKing/apple-music-barcode-isrc development by creating an account on GitHub.

---

<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:** [December 24, 2022, 12:49pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/229 "2022-12-24T12:49:16Z")

</div>

@AreDigg  
On this album (32360123, Guy Davis, Give in Kind) I get an empty title-field in track 5 and 14 and the title is written to COMMENT.

---

<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:** [December 24, 2022, 3:46pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/230 "2022-12-24T15:46:09Z")

</div>

Ok, this should give better results in such cases!  
[Apple Music for MP3Tag v3.3.zip](https://community.mp3tag.de/uploads/short-url/eKtNYFxwZYVcvpfxc4iX44RwiDZ.zip) (25.8 KB)

---

<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:** [December 24, 2022, 4:01pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/231 "2022-12-24T16:01:52Z")

</div>

> [@lextor](#):
>
> Is there a way to integrate a part of this script to get label and UPC?

As far as I am aware of you can't integrate external programs and scripts into a web source script. The best option would be to access the API directly, but it requires that the authorization of the api key is passed on to the Apple servers in each call.

---

<div class="post-metadata">

**Author:** ![xaoc](https://community.mp3tag.de/user_avatar/community.mp3tag.de/xaoc/32/12614_2.png) [@xaoc](https://community.mp3tag.de/u/xaoc)\
**Post date:** [December 24, 2022, 6:42pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/232 "2022-12-24T18:42:19Z")

</div>

doesn't find by album ID, e.g. [511253111](https://music.apple.com/us/album/ripped-vol-1/511253111)  
previous scripts were fine

---

<div class="post-metadata">

**Author:** ![zhordon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/35a633/32.png) [@zhordon](https://community.mp3tag.de/u/zhordon)\
**Post date:** [December 24, 2022, 11:32pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/233 "2022-12-24T23:32:07Z")

</div>

I've been following this thread for sometime and really love your work.

That being said, the github script has the api key required to make the request. If your ok with sending you a private message I can point you in the direction to retrieve the key currently, and the address on where to make the API call to necessary to get the required information.

One thing I noticed with your 3.X versions is the "TITLE" line only shows the Title of the track only at least using macOS mp3tag, where as "TITLESORT" has the Title of the track displayed correctly as it was with version 2.X.

So in other words "TITLESORT" = "TITLE"

 ![Screen Shot 2022-12-24 at 4.21.51 PM](https://community.mp3tag.de/uploads/default/original/2X/c/c68b0a2a9e16e5aea9bc6366410c1988629674cd.png)

Let me know if you'd like me to PM you.

---

<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:** [December 25, 2022, 12:58am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/234 "2022-12-25T00:58:42Z")

</div>

> [@zhordon](#):
>
> That being said, the github script has the api key required to make the request. If your ok with sending you a private message I can point you in the direction to retrieve the key currently, and the address on where to make the API call to necessary to get the required information.

Thanks for your interest in helping, but to be clear, I don't need the API key. I am registered developer with Apple, and can make my own keys. If I had the time, I would probably just make my own app to do the tagging. But MP3Tag does a very good job and it saves me a lot of time.

There are several ways to access the Apple Music API in an official way now, but for the moment none are possible via the Web Source framework. One option which recently available is using javascript, which is not supported, the other way is to authorize via http headers when requesting Apple servers, which also is not supported. Apple have expanded the ways to use the API lately so maybe there will be other ways in the future.

As for the script itself and the metadata, I make the script for my own needs, so any manipulation of the various fields I require will also trickle down to the script I upload. I do try to adapt it if someone asks, if I can make it within my needs, or point to how to change it themselves. One thing is the album and song titles, in Apple Music and iTunes, variants and extra information is tagged on to the title. I put this information into comment instead, as it makes it easier for me when I play back in my player. But as you have shown it will always be a compromise.

I wish there were more possibilities to have some "preferences" options for scripts. Even though the script is quite simple, it requires some basic understanding of programming, if you want to adapt it to your own needs.

I could as many other web source authors have done, make a lot of different variants, but then I don't think I want to jump into the rabbit hole of managing so many variants.

---

<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:** [December 25, 2022, 2:27am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/235 "2022-12-25T02:27:03Z")

</div>

> [@xaoc](#):
>
> doesn't find by album ID, e.g. [511253111](https://music.apple.com/us/album/ripped-vol-1/511253111)  
> previous scripts were fine

Yes, I know. I did not plan to do anything about it, but I changed my mind.

[Apple Music for MP3Tag v3.4.zip](https://community.mp3tag.de/uploads/short-url/vc8sjWz3z2COPCMbEUq7oj56orb.zip) (26.4 KB)

It will try to find data if you paste in an URL, or ID.

---

<div class="post-metadata">

**Author:** ![zhordon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/35a633/32.png) [@zhordon](https://community.mp3tag.de/u/zhordon)\
**Post date:** [December 25, 2022, 2:59am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/236 "2022-12-25T02:59:44Z")

</div>

No problem at all, once again thank you for your contributions! I love MP3tag, and save me a lot of time as well.

I do a combination of tagging between using you APM/iTunes script and the Beatport Scripts, because outside of using mp3tag to make changes, I tend to use the APM/iTunes app for my idevices.

I'm not a programmer but I do know my way of working with existing code and making the necessary changes if told what to do. Managing different variants isn't ideal, but if adding the coding to the script and blocking it off with # so then the user can make the customizations on their own like the existing Beatport script.

Once again, appreciate your efforts to support us users with your time and this project. Merry Christmas as well and all the best to you!.

---

<div class="post-metadata">

**Author:** ![xaoc](https://community.mp3tag.de/user_avatar/community.mp3tag.de/xaoc/32/12614_2.png) [@xaoc](https://community.mp3tag.de/u/xaoc)\
**Post date:** [December 25, 2022, 9:08am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/237 "2022-12-25T09:08:34Z")

</div>

please, add to the list of search results 'year' and 'label'

 ![2022-12-25_120136](https://community.mp3tag.de/uploads/default/original/2X/9/91b37e49ef52a5ebd2018ac21f283fd21a1a1d4e.jpeg)

---

<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:** [December 25, 2022, 12:59pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/238 "2022-12-25T12:59:34Z")

</div>

> [@xaoc](#):
>
> please, add to the list of search results 'year' and 'label'

Don't exist from the search,, sorry

---

<div class="post-metadata">

**Author:** ![djfr3akazoid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/7cd45c/32.png) [@djfr3akazoid](https://community.mp3tag.de/u/djfr3akazoid)\
**Post date:** [December 26, 2022, 4:24am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/239 "2022-12-26T04:24:38Z")

</div>

Any way to fix multiple artists appearing in artist and albumartist seperated by only , instead of artist1, artist2 & artist3 ? I'd prefer the seperation to be second option.

---

<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:** [December 26, 2022, 7:36am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/240 "2022-12-26T07:36:36Z")

</div>

> [@djfr3akazoid](#):
>
> I'd prefer the seperation to be second option.

I think this would be easiest to be achieved with a separate action:

> [@I would like to replace the (,) comma with the word Feat. and the very last comma with the and symbol (&). Please see the example](https://community.mp3tag.de/t/i-would-like-to-replace-the-comma-with-the-word-feat-and-the-very-last-comma-with-the-and-symbol-please-see-the-example/59468/8):
>
> Thanks, it worked! I appreciate your time and help

---

<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:** [December 28, 2022, 3:22am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/241 "2022-12-28T03:22:40Z")

</div>

@AreDigg Do you have any idea what is causing this bizarre issue?

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

The only track treated "normally" is the first track. The second track omits it entirely, and every subsequent track has two vertical bars following the track number (e.g., 201||).

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

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