[WS] Apple Music

This worked. Thank you!

Hi AreDigg,

I'm wondering if it would be possible to break out the data scrub into a separate inc file (assuming it's the data scrub portion of the script that apple keeps breaking)? Taking that approach would allow users that are tweaking the search and naming portions of your scripts to meet our specific needs to leave our changes intact when updates are necessary. Just a thought.

Thanks for sharing this script by the way - It's helped fill all kinds of gaps in my metadata.

It is not so complicated that should be necessary.

What is breaking is the top level of the json, as it seem to be constructed of what is likely an internal query string into the database. In a way it has been somewhat beneficial when it breaks, as Apple has added more data onto the query every time, and thus returning more.

Fair enough. The potential for some additional data is a unexpected bonus for sure!

Thanks

Not sure if this has been checked out, but is it possible to have this apply the itunesadvisory field?

A little update. I have added so it picks up music videos if they exist on the albums. A few bug fixes and minor changes.

Apple Music for Mp3Tag 2.0.zip (34.8 KB)

2 Likes

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 ?

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

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.

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

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.

The iTunes API does not contains a composer field.

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.

@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

What I have to keep in the script to have just the composers ? I prefer the iTunes Store script for the rest but does not fill this box..

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?

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.

@AreDigg the script might need a little update

here's a working one in the meantime
Apple Music Web.zip (2.6 KB)

3 Likes

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...