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

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

</div>

> [@mirogeorgiev97](#):
>
> What equivalent action do I take to get `OutputTo "ALBUMARTISTSORT"` to work?

Ok, so nothing about my script.

---

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

</div>

But it _is_ in your script? I edited the .INC file to get the aforementioned to work, but I don't know how to get `OutputTo "ALBUMARTISTSORT"` specifically to work. Unless I'm misunderstanding something…

---

<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 22, 2023, 5:57pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/389 "2023-11-22T17:57:41Z")

</div>

If something is wrong or missing in the script, I will take a look.

---

<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 23, 2023, 12:53am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/390 "2023-11-23T00:53:07Z")

</div>

@AreDigg _This_ is what I mean by your script can't handle any albums whose `OutputTo "ALBUMARTIST"` contains "Various Artists":

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

On iTunes, the album artist is "Various Artists & Wendy Carlos":

 ![image](https://community.mp3tag.de/uploads/default/original/2X/2/2363a50483d4c80f5ff747a8faaaf7dba5d011aa.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 23, 2023, 2:01am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/391 "2023-11-23T02:01:59Z")

</div>

Yes, that is by design, but I can see if I will make some changes to address this kind of cases.

---

<div class="post-metadata">

**Author:** ![Ikamusume](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/76d3ee/32.png) [@Ikamusume](https://community.mp3tag.de/u/Ikamusume)\
**Post date:** [November 24, 2023, 5:46pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/392 "2023-11-24T17:46:42Z")

</div>

I can get the tag data by using "AppleMusic.inc" published by AreDigg yesterday, but when I get it from Japanese AppleMusic, I get the string "年" after the album artist's name and "\ミュージック" after the genre.  
I am not very familiar with scripts and do not know what to do.  
Can someone please fix it for me?

 ![スクリーンショット (11)](https://community.mp3tag.de/uploads/default/original/2X/c/ccf3e00ff48c83412c34ef9412020ad28b81f492.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 24, 2023, 6:37pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/393 "2023-11-24T18:37:11Z")

</div>

> [@Ikamusume](#):
>
> Can someone please fix it for me?

I should be able to fix that, you can also go in settings and choose single genre, then only the genre name and not the music part will show.

Apple have "music" as a genre, I have removed it for a few languages, but haven't gotten to all. But single genre will always show the first only.

The album artist I have to take a look at, it is supposed to remove a year (the string I use for album artist includes the year, and I use a regex, but only for the digits and the delimiting dot, but I see that in Japanese there is also a character for the year).

---

<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 3, 2023, 6:24pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/395 "2023-12-03T18:24:56Z")

</div>

Have you had any luck regarding the character "年" following album artists' names?

---

<div class="post-metadata">

**Author:** ![editorPy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/439d5e/32.png) [@editorPy](https://community.mp3tag.de/u/editorPy)\
**Post date:** [January 16, 2024, 3:27am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/396 "2024-01-16T03:27:38Z")

</div>

Missing **ITUNESGAPLESS** , **ITUNESGENREID** and **XID** fields. (using v3.14)

---

<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:** [January 16, 2024, 8:39am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/397 "2024-01-16T08:39:57Z")

</div>

Those tags are not in the source and I don’t plan to add constructed or random values.

---

<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:** [January 16, 2024, 9:44am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/398 "2024-01-16T09:44:54Z")

</div>

I'm pretty sure i saw Gapless in the dataset either from the iTunes or Apple Music Webscripts? Maybe I'm mistaken?

---

<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:** [February 7, 2024, 4:38pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/399 "2024-02-07T16:38:47Z")

</div>

If I select Russian (&Apple Music#Россия (Русский).src), this will come out

 ![Bildschirmfoto 2024-02-07 um 17.36.12](https://community.mp3tag.de/uploads/default/original/3X/9/b/9beb41e84a9921aa66e314dc0486f0c6ef0642cd.png)  
 ![Bildschirmfoto 2024-02-07 um 17.36.25](https://community.mp3tag.de/uploads/default/original/3X/1/7/179b7d056ed924e43afd3b59f0c052fef02d424f.png)

What can it be?

* * *

edit: If i type in search line one word, then the results come...

---

<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:** [February 8, 2024, 8:25am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/400 "2024-02-08T08:25:20Z")

</div>

The Russian Apple Music has been a bit limited from Apples side.if you click the item what comes up and can you write here the search term you used?

---

<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:** [February 8, 2024, 8:49am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/401 "2024-02-08T08:49:38Z")

</div>

Russian English works. Russian russian only with 1 Word, example Криминальный - works, криминальный бит not. It comes

 ![Bildschirmfoto 2024-02-07 um 17.36.25](https://community.mp3tag.de/uploads/default/original/3X/1/7/179b7d056ed924e43afd3b59f0c052fef02d424f.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:** [February 10, 2024, 7:29pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/402 "2024-02-10T19:29:47Z")

</div>

Should be fixed in new version.

---

<div class="post-metadata">

**Author:** ![djdizzle](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ed8c4c/32.png) [@djdizzle](https://community.mp3tag.de/u/djdizzle)\
**Post date:** [March 30, 2024, 1:02am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/403 "2024-03-30T01:02:29Z")

</div>

Hi,

I am having trouble with the `%YEAR%` field not displaying correctly in Apple Music due to the formatting applied by the script. The `%RELEASETIME%` tag is displaying fine. In Mp3tag the `%YEAR%` displays as `2014-01-01T00:00:00.000Z` but should be `2014-01-01T00:00:00Z`.

Is there a way to format the tag correctly in the script?

```json
json_select_object "data"
IfNot ""
	json_select_object "seoData"
		
		OutputTo "YEAR"
		json_select "musicReleaseDate"
		SayNChars 21
        SayNextNumber
        Say "|"

		OutputTo "RELEASETIME"
		json_select "musicReleaseDate"
		SayNChars 8
        SayNextNumber
        Say "|"

```

Also, I can't get the `Year` field to display a value in the search results dialog. I can get the column to display, just not the value for each result

 ![image](https://community.mp3tag.de/uploads/default/original/3X/a/a/aafcf40f67a725e773f177f295c0fb4e01879fde.jpeg)

I believe the script is not getting the correct timestamp as the timestamp is always `T00:00:00.000Z`.

---

<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:** [March 30, 2024, 11:12am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/404 "2024-03-30T11:12:38Z")

</div>

> [@djdizzle](#):
>
> I am having trouble with the `%YEAR%` field not displaying correctly in Apple Music due to the formatting applied by the script.

Is this your own modifications you want to have fixed?  
The date is provided directly without modification from the data provided by Apple. But it is possible to reformat it, the easy one is to use `Replace ".000Z" "Z"` as I am sure it will always be zeros. If you think the timestamp is incorrect, you have to contact Apple.

> [@djdizzle](#):
>
> Also, I can't get the `Year` field to display a value in the search results dialog.

No wonder. Where do you expect that year should come from?

---

<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 2, 2024, 4:34pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/405 "2024-04-02T16:34:35Z")

</div>

I have been trying to incorporate the TOTALDISCS value in the DISCNUMBER value field separated by "/" (e.g. 1/2, 2/4, etc.) and the TOTALTRACKS value in the TRACKS value field, also separated by "/" (e.g. 2/7, 1/4, etc.).

What should I change in the script to get this to work?

---

<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 2, 2024, 9:55pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/406 "2024-04-02T21:55:20Z")

</div>

For discs you could use an Action, for tracks just combine the values with a '/' between.

---

<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, 1:05am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/407 "2024-04-03T01:05:53Z")

</div>

What audio format are you using? The m4a format doesn't permit the total to be included in the disc and track fields.

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

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