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

<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:35am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/242 "2022-12-28T03:35:15Z")

</div>

How do we format a string so that instead of "Artist, Artist, Artist," it is "Artist, Artist & Artist"?

---

<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 28, 2022, 5:58pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/243 "2022-12-28T17:58:33Z")

</div>

> [@mirogeorgiev97](#):
>
> Do you have any idea what is causing this bizarre issue?

No, I tried to load the same album, and I don't have the same issue.

---

<div class="post-metadata">

**Author:** ![ceo54](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@ceo54](https://community.mp3tag.de/u/ceo54)\
**Post date:** [December 29, 2022, 6:15pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/244 "2022-12-29T18:15:19Z")

</div>

Many thanks @AreDigg you're the best. Not as good as the previous script but still the BEST.

EDIT: Missing the UPC, Language and Label tags. Will it be possible to add these ?

---

<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 29, 2022, 8:11pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/245 "2022-12-29T20:11:48Z")

</div>

Do you suppose it's because I'm still using the 32-bit version of MP3Tag instead of the 64-bit version?

---

<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 29, 2022, 8:24pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/246 "2022-12-29T20:24:16Z")

</div>

I just switched over to the 64-bit version, and the issue persists.

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

---

<div class="post-metadata">

**Author:** ![ceo54](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@ceo54](https://community.mp3tag.de/u/ceo54)\
**Post date:** [December 29, 2022, 9:33pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/247 "2022-12-29T21:33:14Z")

</div>

Okay I tried to edit the script to my liking, spent 3 hours doing it and messed up at every try, finally determined I can't do it on my own and need someone smarter than me to help me out.

I want to change the caps on the tag fields like all tag fields should be where first alphabet is capatalized and the rest are small caps, ex: "Composer", Comment", "Copyright", "iTunesAdvisory", "iTunesCatalogID".

And want want all the tag fields removed except for, artist, title, album, track, year, genre, comment, album artist, composer, copyright, description, disc, isrc, itunesadvisory, itunescatalogid and itunesmediatype.

Who can help me accomplish this ?

Any help will be greatly appreciated. I truly mean it.

---

<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 29, 2022, 9:46pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/248 "2022-12-29T21:46:49Z")

</div>

Isn't this a question of post-processing with an action of the type "Case conversion":

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/3):
>
> How to change upper/lower case of tag fields or filenames? Create a [new action](https://community.mp3tag.de/t/actions/967/2) in an existing action group and choose Case conversion as action type. Field determines which parts of the tags/filename should be changed. Case conversion determines how the upper/lower case of the field will be changed. If you want for example mark chars after a left parenthesis or a hyphen as the begin of a word, enter the respective char under Words begin from/after any of.

---

<div class="post-metadata">

**Author:** ![ceo54](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@ceo54](https://community.mp3tag.de/u/ceo54)\
**Post date:** [December 29, 2022, 9:48pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/249 "2022-12-29T21:48:36Z")

</div>

@ohrenkino As far as I know, that will change the tags written to the files, not the tag fields, for that script needs to be edited. Thank you for the response and the help though.

---

<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 29, 2022, 9:52pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/250 "2022-12-29T21:52:43Z")

</div>

Please have a look at the documentation to see the various settings to change the case of special properties:

> **[Case Conversion – Mp3tag Documentation](https://docs.mp3tag.de/actions/case-conversion/)**
>
> Documentation on the Case Conversion action type that can be performed as Quick Action or as reusable workflow from Action Groups. Mp3tag is the universal Tag Editor.

---

<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 29, 2022, 10:37pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/251 "2022-12-29T22:37:01Z")

</div>

> [@ceo54](#):
>
> EDIT: Missing the UPC, Language and Label tags. Will it be possible to add these ?

For language you can add this

```auto
OutputTo "LANGUAGE"
json_select "audioLocale"
SayRest
Say "|"

```

after

```auto
OutputTo "ISRC"
json_select "isrc"
SayRest
Say "|"

```

For the other tags, they are not present in the source data, but you could change PUBLISHER to LABEL if you need it, or use both.

---

<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 29, 2022, 10:39pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/252 "2022-12-29T22:39:01Z")

</div>

> [@mirogeorgiev97](#):
>
> I just switched over to the 64-bit version, and the issue persists.

Please ensure you have the newest script, and if you make your own modifications check that they are correct.

---

<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 30, 2022, 12:56am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/253 "2022-12-30T00:56:02Z")

</div>

I have the newest version, and the problem was there even before I made any modifications.

---

<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 30, 2022, 5:32am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/254 "2022-12-30T05:32:37Z")

</div>

In that case you receive different data from Apple. I can try to diagnose it, but then you have to take my unmodified script, uncomment line 267: `# debug "on" "debug-album.txt"` (by removing the #). Then send me the debug-album.txt file, after you have tried it on an album with incorrect data.

---

<div class="post-metadata">

**Author:** ![ceo54](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@ceo54](https://community.mp3tag.de/u/ceo54)\
**Post date:** [December 30, 2022, 12:59pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/255 "2022-12-30T12:59:53Z")

</div>

> [@AreDigg](#):
>
> For language you can add this
> 
> ```auto
> OutputTo "LANGUAGE"
> json_select "audioLocale"
> SayRest
> Say "|"
> 
> ```

Works, thanks.

Detected a problem. The title of the tracks where other artists are featured the feat.xxxx is not written to the track title instead goes to the comment field.

02 Ce soir ne sors pas (feat. Maître Gims).flac

Now the tags are:

Title: Ce soir ne sors pas  
Comment: feat. Maître Gims

Shouldn't this comment field be suffixed to the title field ?

Tried with many albums, same result. _ **feat. artist** _ from the title goes to the comment field instead.

![Capture](https://community.mp3tag.de/uploads/default/original/2X/a/a5e935b940cf416487b54220106c3628e39fe142.png)

Thamks for the support Aredigg.

Edit: Album artwork is always 2400x2400, is it possible to obtain the highest possible resolution artwork through the script ?

---

<div class="post-metadata">

**Author:** ![Lukriax](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c67d28/32.png) [@Lukriax](https://community.mp3tag.de/u/Lukriax)\
**Post date:** [December 30, 2022, 3:35pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/256 "2022-12-30T15:35:39Z")

</div>

Have the same problem. It seems like title and titlesort are swapped, aswell as album and albumsort.

---

<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 30, 2022, 5:42pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/257 "2022-12-30T17:42:11Z")

</div>

It's by design. I mentioned it already, but because it's AreDigg's script it's his preference on what works for him, and he's simply sharing it with us.

You can see his response here: [[WS] Apple Music - #234 by AreDigg](https://community.mp3tag.de/t/ws-apple-music/51184/234)

I personally am not going to make them work harder for something that takes an extra 5 seconds to copy and paste over in Extended Tags mode.

If someone is able to make the necessary changes and document it, that would allow us manually adjust 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:** [December 30, 2022, 6:43pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/258 "2022-12-30T18:43:47Z")

</div>

> [@zhordon](#):
>
> something that takes an extra 5 seconds to copy and paste over in Extended Tags mode.

You don't even have to do it manually - you can apply an action as dexcribed in the HowTos:

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/14):
>
> How to swap the contents of 2 tag fields? Example how to swap TITLE and ARTIST: Create a [new action](https://community.mp3tag.de/t/actions/967/2) in an existing action group or make a new action group. Action type: Guess values Source format: %title%~%artist% Guessing pattern: %artist%~%title% Note: The ~ sign is just used to separate the two fields, you could take any other sign that does not appear in your fields, e.g. ¢ or an extended unicode character like ∞ or ∑.

---

<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 30, 2022, 7:37pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/259 "2022-12-30T19:37:10Z")

</div>

A post was split to a new topic: [Case conversion for all fields](https://community.mp3tag.de/t/case-conversion-for-all-fields/59568)

---

<div class="post-metadata">

**Author:** ![ceo54](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@ceo54](https://community.mp3tag.de/u/ceo54)\
**Post date:** [December 30, 2022, 8:05pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/260 "2022-12-30T20:05:07Z")

</div>

The script is writing some data in the comment field and I just want it to be completely empty. So how do I empty it out removing the entry from this field ?

I suppose this can be accomplished using one of the actions but I will need some regex expression.

Any help will be greatly appreciated.

---

<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 30, 2022, 8:55pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/261 "2022-12-30T20:55:04Z")

</div>

To join 2 fields and remove one of them, try an action of the type "Guess value"  
Source: %title% %comment%==  
Target pattern: %title%==%comment%

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

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