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

<div class="post-metadata">

**Author:** ![louaizema](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/a87d85/32.png) [@louaizema](https://community.mp3tag.de/u/louaizema)\
**Post date:** [May 3, 2021, 7:36pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/64 "2021-05-03T19:36:59Z")

</div>

Thank you so much for the good job bro. Keep it up!!

---

<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 3, 2021, 10:27pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/65 "2021-05-03T22:27:49Z")

</div>

> [@Ouargui](#):
>
> Nice update, and since we're talking ab music videos, apple script provides mv thumbnails seprately from the album cover, is there a way to import multiple covers at once ?

I guess it is possible. Some releases do have several kinds of artwork. But how the script system work you have to load one for each file. And I think you can only have one image per file as it is now.

---

<div class="post-metadata">

**Author:** ![sutaz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@sutaz](https://community.mp3tag.de/u/sutaz)\
**Post date:** [May 7, 2021, 1:46pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/66 "2021-05-07T13:46:18Z")

</div>

How can I reduce the year to 4 digit?  
regexpreplace does not work right? I tested it

---

<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:** [June 23, 2021, 5:28pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/67 "2021-06-23T17:28:32Z")

</div>

Have you been working on the iTunes API, by any chance? I wonder if you can make it capture the "composer" tag the way the Apple Music source file can.

---

<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:** [July 1, 2021, 10:50pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/68 "2021-07-01T22:50:41Z")

</div>

The iTunes API does not contains a composer field.

---

<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:** [August 2, 2021, 5:53pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/69 "2021-08-02T17:53:55Z")

</div>

Hello AreDigg, Thank you for this amazing script. The best iTunes script discovered so far which writes extended tags too.

I hope you maintain this script forever.

---

<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:** [August 17, 2021, 4:19pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/70 "2021-08-17T16:19:23Z")

</div>

@AreDigg  
Both scripts show a wrong length if the length is only a few seconds. The scripts then show a length of more than an hour.

Example:  
[https://music.apple.com/us/album/toronto/418391988](https://music.apple.com/us/album/toronto/418391988)

---

<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:** [September 15, 2021, 7:24pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/72 "2021-09-15T19:24:48Z")

</div>

> [@poster](#):
>
> Both scripts show a wrong length if the length is only a few seconds. The scripts then show a length of more than an hour.

It seem to be something that Mp3Tag is doing. The duration of your last track is 4173 ms and that is what the script gets from Apple. I guess some logic says that lower numbers are not expected to be milliseconds, maybe @Florian can tell more?

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [September 16, 2021, 1:14pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/73 "2021-09-16T13:14:17Z")

</div>

Yes, usually I'm assuming seconds for the length from Tag Sources. Currently, if the provided length is longer than an undocumented threshold, I'm assuming milliseconds.

Seems like this heuristic works in most cases, but not all.

---

<div class="post-metadata">

**Author:** ![Ouargui](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/o/f17d59/32.png) [@Ouargui](https://community.mp3tag.de/u/Ouargui)\
**Post date:** [October 5, 2021, 4:44pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/74 "2021-10-05T16:44:44Z")

</div>

@AreDigg the script might need a little update

---

<div class="post-metadata">

**Author:** ![Ouargui](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/o/f17d59/32.png) [@Ouargui](https://community.mp3tag.de/u/Ouargui)\
**Post date:** [October 6, 2021, 5:29am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/75 "2021-10-06T05:29:40Z")

</div>

here's a working one in the meantime  
[Apple Music Web.zip](https://community.mp3tag.de/uploads/short-url/4fuvHLVDDOI93nvg7OHaexCVOkg.zip) (2.6 KB)

---

<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:** [October 6, 2021, 1:57pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/76 "2021-10-06T13:57:57Z")

</div>

Thanks Ouargui!

Do you mind if I ask what you changed? I have a modified script and I am hoping I can just tweak a line or two to get it back up...

---

<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 6, 2021, 6:16pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/77 "2021-10-06T18:16:26Z")

</div>

Updated!

[Apple Music for Mp3Tag 2.1.zip](https://community.mp3tag.de/uploads/short-url/uYmOQOwm34XeUD54T4bv4M7bjj5.zip) (35.3 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:** [October 6, 2021, 6:20pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/78 "2021-10-06T18:20:14Z")

</div>

> [@taggert](#):
>
> Do you mind if I ask what you changed?

Only one line is required to change if your script worked before. Change

```auto
Replace ".2cpopularity.2ceditorialvideo.fields.5balbums.3aalbums.5d.artistname" ""

```

to

```auto
Replace ".2cpopularity" ""
Replace ".2ceditorialvideo.fields.5balbums.3aalbums.5d.artistname" ""

```

---

<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:** [October 6, 2021, 9:17pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/79 "2021-10-06T21:17:14Z")

</div>

Thanks! Much apricated!

---

<div class="post-metadata">

**Author:** ![xavervarne](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/a8b319/32.png) [@xavervarne](https://community.mp3tag.de/u/xavervarne)\
**Post date:** [October 9, 2021, 11:23pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/80 "2021-10-09T23:23:33Z")

</div>

I was worried.  
THANK YOU !

---

<div class="post-metadata">

**Author:** ![Ouargui](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/o/f17d59/32.png) [@Ouargui](https://community.mp3tag.de/u/Ouargui)\
**Post date:** [October 13, 2021, 8:52am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/81 "2021-10-13T08:52:59Z")

</div>

@Florian i wonder if it is possible to import more than one cover at once.

---

<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:** [October 15, 2021, 8:17am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/82 "2021-10-15T08:17:08Z")

</div>

Many thanks for the updated version my friend.

Best script ever.

---

<div class="post-metadata">

**Author:** ![Derel](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@Derel](https://community.mp3tag.de/u/Derel)\
**Post date:** [October 18, 2021, 4:42am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/83 "2021-10-18T04:42:40Z")

</div>

This script its so great, and very useful for adding all the tags available on the applestore, BUT it could also be useful for me to fix the size of the cover artworks too.

Lately itunes/applemusic it's adding heavy covers (uncompress) with 100% quality to the m4a files, and this it's so useless for me (a lot wast of space) So... i always have to get the covers back from the store and change the size and quality directly on the link and fix it manually =/

So, I checked this script and I only see the option to change the size and format, my question is: There any code that i could add to be able to set the quality too?

Thanks in advanced! ^^

---

<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 5, 2021, 12:18pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/84 "2021-11-05T12:18:02Z")

</div>

@AreDigg  
In case of multiple hits both scripts sometimes say not so seldom there is 1 track more than is actually available in the album and is also shown by Apple for the album.

Is this inevitable because Apple gives a wrong result somewhere or could it be corrected by changing the script?

Examples:  
Lady Gaga - Chromatica (17 instead of 16)  
Lady Gaga - Born this way (15 instead of 14)  
Lana Del Rey - Honeymoon (15 instead of 14)  
Lana de Rey - Lust for Life (17 instead of 16)

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

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