# \[WS\] iTunes

**URL:** https://community.mp3tag.de/t/ws-itunes/13478
**Category:** Web Sources Scripts
**Created:** [May 24, 2012, 10:05am UTC](https://community.mp3tag.de/t/ws-itunes/13478 "2012-05-24T10:05:22Z")
**Posts on this page:** 20
**Page:** 16

<div class="post-metadata">

### Author: ![DutchyDJ](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@DutchyDJ](https://community.mp3tag.de/u/DutchyDJ)
#### Post date: [February 2, 2019, 5:05pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/309 "2019-02-02T17:05:01Z")

</div>

Hey Guys, great resources here, thanks to all that have contributed...

I tweaked the script to tailor it for my personal use to search for tracks rather then albums as I am working on fixing tags for a large singles collection.

In order to make it work I had to change the [IndexUrl] to search on song entity, but I kept getting no results until I dropped the %copyright% from the index as that is not returned by the API...

So now my initial search result index shows all albums that that track is found on... It works great for me now, except fr I wanted to show the track time to easily spot which version I have is the best match as a lot of versions of mostly dance music have different lengths...  
(I did also drop some sort fields for which I personally had no use)

I am asking for help as I am not strong in the "expressions" dept, and I dont have a clue how to fix my script to show the track time in mm:ss instead of the Track Millis the API returns... Everything else works fine for me... if someone has some scripting knowledge to assist that would be great...

I would like this piece of code to show MM:SS instead of the raw API trackTimeMillis:

# LENGTH

```
FindLine "\"trackTimeMillis\":"
FindInLine "\"trackTimeMillis\":"
SayUntil ", \""
Say "|"	

```

Thanks in Advance...  
Here is a copy of my script for anyone to use or tweak if helpful:  
[iTunes CDN - Track Search.src](https://community.mp3tag.de/uploads/default/original/2X/f/f6f596f26394d0f7789180772998e9fba0d05b38.src) (5.9 KB)

---

<div class="post-metadata">

### Author: ![jonaaa](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jonaaa/32/457_2.png) [@jonaaa](https://community.mp3tag.de/u/jonaaa)
#### Post date: [February 3, 2019, 2:18am UTC](https://community.mp3tag.de/t/ws-itunes/13478/310 "2019-02-03T02:18:55Z")

</div>

I'm now back, i don't know what happened but since the recent changes on the forum, i couldn't post anymore, anyway, i'm keeping the script alive on my personal GitHub (search for jonaaa20 over there), anyway, i'm here to report a issue with a album, this also happens with the Stevehero and other tweaked scripts here...

This is what happens:

[![](https://community.mp3tag.de/uploads/default/original/2X/e/e5949404a35bc49b26025526c099f44b3f1817e1.png) ](https://i.imgur.com/sVwpoZq.png)

After some investigation, seems that this is a issue with their API, when you search for this album on the API, instead of showing the song data, i mean, publisher, track numbers etc etc, it shows the album data (album name, artist name and the year) and then the script fails... is there any fix? that's the only problem on the script.

Oh and i've almost forgot, if anyone is interested, that's my latest version posted on my personal GitHub (attached.), feel free to tweak the script 🙂

[v0.3.1.zip](https://community.mp3tag.de/uploads/default/original/2X/c/c7b46ff47e70100cc482e48cfbdeab5efc3c77e2.zip) (143.5 KB)

---

<div class="post-metadata">

### Author: ![detone](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ad7895/32.png) [@detone](https://community.mp3tag.de/u/detone)
#### Post date: [April 1, 2019, 2:05pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/311 "2019-04-01T14:05:45Z")

</div>

Hello guys!

Today, my Mp3Tag source iTunes is displaying the following message:

> 12002: 12002: The operation timed out

But, my internet connection its ok.  
What can it be?

Are you having the same problem?

Thanks!  
Best regards,

David Jill

---

<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: [April 1, 2019, 5:56pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/312 "2019-04-01T17:56:24Z")

</div>

Just a guess: has your PC performed the switch to daylight savings time correctly?

---

<div class="post-metadata">

### Author: ![detone](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ad7895/32.png) [@detone](https://community.mp3tag.de/u/detone)
#### Post date: [April 1, 2019, 6:20pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/313 "2019-04-01T18:20:31Z")

</div>

Yes I'm in Brazil and everything is correct

I'm using Windows XP ... It always worked ... It was about 2 weeks ago that I did not open Mp3Tag ... And today, when I went to scan some songs, this message came.

I'm using the most current version of Mp3Tag.

Cheers!

---

<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: [April 1, 2019, 6:51pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/314 "2019-04-01T18:51:38Z")

</div>

Did you see this thread about TLS and XP?

> [@Failed Authentication to Discogs](https://community.mp3tag.de/t/failed-authentication-to-discogs/19139/23):
>
> Are you using Windows XP by chance? Discogs disabled TLS 1.0 and 1.1 for [api.discogs.com](http://api.discogs.com), so Mp3tag no has to use TLS 1.2 for connections to [api.discogs.com](http://api.discogs.com). Unfortunately, TLS 1.2 is not supported on Windows XP, so you'd need to update your OS to use the Discogs tag source. [https://www.discogs.com/forum/thread/347984#7629034](https://www.discogs.com/forum/thread/347984#7629034)

---

<div class="post-metadata">

### Author: ![detone](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ad7895/32.png) [@detone](https://community.mp3tag.de/u/detone)
#### Post date: [April 1, 2019, 6:58pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/315 "2019-04-01T18:58:34Z")

</div>

> [@ohrenkino](#):
>
> Did you see this thread about TLS and XP?

Ohhh... I dont see this notice. Well, for u, iTunes source is ok today?

Thanks again!

---

<div class="post-metadata">

### Author: ![jonaaa](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jonaaa/32/457_2.png) [@jonaaa](https://community.mp3tag.de/u/jonaaa)
#### Post date: [April 7, 2019, 3:20pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/316 "2019-04-07T15:20:02Z")

</div>

The script is working fine.

---

<div class="post-metadata">

### Author: ![veenx0704](https://community.mp3tag.de/user_avatar/community.mp3tag.de/veenx0704/32/6694_2.png) [@veenx0704](https://community.mp3tag.de/u/veenx0704)
#### Post date: [July 29, 2019, 6:11pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/317 "2019-07-29T18:11:08Z")

</div>

Is there a way to search song / album titles based on **URL**??? For some reasons,

> **[Various Artistsの「「らき☆すた」歌のベスト~アニメ放送10周年記念盤~」をApple Musicで](https://music.apple.com/jp/album/%E3%82%89%E3%81%8D-%E3%81%99%E3%81%9F-%E6%AD%8C%E3%81%AE%E3%83%99%E3%82%B9%E3%83%88-%E3%82%A2%E3%83%8B%E3%83%A1%E6%94%BE%E9%80%8110%E5%91%A8%E5%B9%B4%E8%A8%98%E5%BF%B5%E7%9B%A4/1261416787)**
>
> Various Artistsの「らき☆すた」歌のベスト~アニメ放送10周年記念盤~をApple Musicでプレビュー。2017年年。52曲。時間：3時間56分。 アルバムを¥4,500で購入。

this album won't show up on search...i think it is easier if someone install the URL search too...if anyone can help me, i really appreciate it!

> Edit  
> okay i changed the country code part to jp and it works fine:)

[iTunes CDN - Track Search JP.src](https://community.mp3tag.de/uploads/short-url/hJOQyuNxjTNakxLBiZsBd0YvlYv.src) (5.9 KB)

---

<div class="post-metadata">

### Author: ![aviness](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@aviness](https://community.mp3tag.de/u/aviness)
#### Post date: [October 22, 2019, 8:23pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/318 "2019-10-22T20:23:54Z")

</div>

I just got the same problem. I think it might have to do with one track albums...?

---

<div class="post-metadata">

### Author: ![jonaaa](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jonaaa/32/457_2.png) [@jonaaa](https://community.mp3tag.de/u/jonaaa)
#### Post date: [November 22, 2019, 1:58am UTC](https://community.mp3tag.de/t/ws-itunes/13478/319 "2019-11-22T01:58:05Z")

</div>

No idea, i hope someone find the solution, i tried but no success.

---

<div class="post-metadata">

### Author: ![carmeloc94](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/9e8a1a/32.png) [@carmeloc94](https://community.mp3tag.de/u/carmeloc94)
#### Post date: [June 25, 2020, 2:09pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/320 "2020-06-25T14:09:22Z")

</div>

Hi, there is a way to grab ISRC tag from iTunes json?

---

<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, 2:01am UTC](https://community.mp3tag.de/t/ws-itunes/13478/321 "2021-06-23T02:01:41Z")

</div>

Could someone help me with making sure that iTunes recognizes the "composer" category as distinct from the "artist" category? Every time I tag with iTunes, it does this:

> outputto "COMPOSER"  
> FindLine ""artistName":""  
> FindInLine ""artistName":""  
> SayUntil "", ""  
> Say "|"
> 
> outputto "COMPOSERSORT"  
> FindLine ""artistName":""  
> FindInLine ""artistName":""  
> SayUntil "", ""  
> Say "|"

This can be pretty annoying if there are multiple composers, none of whom are the "artist," such as in classical music compilations (e.g., the music is by Bach, Beethoven, Brahms, Mozart, Schubert, etc.; they can't _all_ be by Herbert von Karajan & Berlin Philharmonic because neither Karajan nor the Berlin Philharmonic are composers).  
I tried to alter it to this:

> outputto "COMPOSER"  
> FindLine ""composerName":""  
> FindInLine ""composerName":""  
> SayUntil "", ""  
> Say "|"
> 
> outputto "COMPOSERSORT"  
> FindLine ""composerName":""  
> FindInLine ""composerName":""  
> SayUntil "", ""  
> Say "|"

That, unfortunately, only gives me an error. So, what do I do?

---

<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: [June 23, 2021, 5:13am UTC](https://community.mp3tag.de/t/ws-itunes/13478/322 "2021-06-23T05:13:12Z")

</div>

@mirogeorgiev97  
You could try another script for Apple:

> [@\[WS\] Apple Music](https://community.mp3tag.de/t/ws-apple-music/51184):
>
> I was tired of the old iTunes scripts so I decided to make new. One for Apple Music, and another for iTunes. Apple Music 3 (Web) [Apple Music for MP3Tag (Web) v3.14.zip](https://community.mp3tag.de/uploads/short-url/3poLbmh1xBAdzVFQlZi8feMlcGT.zip) (50.1 KB) (24-11-2023) Apple Music 4 (API) [Apple Music Web Source 4.0b3.zip](https://community.mp3tag.de/uploads/short-url/wgKsWfXWAxzgUjUQyIeLvMlpJHY.zip) (7.1 KB) (15-11-2023) iTunes (API) [iTunes API for Mp3Tag 1.8.zip](https://community.mp3tag.de/uploads/short-url/aaUc45vCoZi7ya6Is1ifHv3qEKh.zip) (34.2 KB) (06-04-2021)

Take the Apple script, not the Itunes-script to get the composer.

Also the Deezer srcipt grabs the composer:

> [@\[WS\] Deezer](https://community.mp3tag.de/t/ws-deezer/45537):
>
> This is a web source script for Deezer, a popular music streaming service. It is particularly useful when looking to get information about the people involved in the music creation process of an album and its tracks, such as composers, lyricists, producers, engineers, and the like. Specifically, these are the tag fields parsed by the script: COVER; ALBUMARTIST; ALBUM; YEAR; PUBLISHER; UPC; ARTIST; TITLE; TRACK; DISCNUMBER; ISRC; ITUNESADVISORY; COMPILATION And optionally, when available: COM…

---

<div class="post-metadata">

### Author: ![xawwnee](https://community.mp3tag.de/user_avatar/community.mp3tag.de/xawwnee/32/9483_2.png) [@xawwnee](https://community.mp3tag.de/u/xawwnee)
#### Post date: [June 27, 2021, 2:17pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/323 "2021-06-27T14:17:23Z")

</div>

How to get text inside double quote? (if exist) else collectionName

E.g. "trackName":"Chali Chali (From "Thalaivi")",  
Needs Thalaivi

---

<div class="post-metadata">

### Author: ![Newyouth](https://community.mp3tag.de/user_avatar/community.mp3tag.de/newyouth/32/6778_2.png) [@Newyouth](https://community.mp3tag.de/u/Newyouth)
#### Post date: [December 10, 2021, 1:55am UTC](https://community.mp3tag.de/t/ws-itunes/13478/324 "2021-12-10T01:55:04Z")

</div>

Hi,  
Today I find a problem for iTunes or Apple Music sources. When I try to match the source, will be show me this information:

Error connecting to server: [https://itunes.apple.com/](https://itunes.apple.com/)

> 0: SSL error:  
> WINHTTP\_CALLBACK\_STATUS\_FLAG\_CERT\_CN\_INVALID  
> SSL common name does not match.

I don't know how to fix this...

---

<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 10, 2021, 6:05am UTC](https://community.mp3tag.de/t/ws-itunes/13478/325 "2021-12-10T06:05:32Z")

</div>

I just tested. It's still working here.

---

<div class="post-metadata">

### Author: ![Benny](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@Benny](https://community.mp3tag.de/u/Benny)
#### Post date: [February 15, 2022, 10:51am UTC](https://community.mp3tag.de/t/ws-itunes/13478/326 "2022-02-15T10:51:51Z")

</div>

Hello I wanted to ask you if there was a more updated version and the link to download it and also if you could do the search with artist plus title. Thanks in advance

---

<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: [February 17, 2022, 11:57pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/327 "2022-02-17T23:57:52Z")

</div>

Something is wrong with this script at the moment. Only the iTunesCountryID will show up and absolutely nothing else.

---

<div class="post-metadata">

### Author: ![stitch](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stitch/32/11121_2.png) [@stitch](https://community.mp3tag.de/u/stitch)
#### Post date: [February 18, 2022, 3:55am UTC](https://community.mp3tag.de/t/ws-itunes/13478/328 "2022-02-18T03:55:56Z")

</div>

Adjusted the script to allow 1200x1200 resolution artwork.  
[iTunes.src](https://community.mp3tag.de/uploads/short-url/tjBswbsXccXMjk4G4QzIMj5DnIq.src) (3.3 KB)

[Previous page](https://community.mp3tag.de/t/ws-itunes/13478.md?page=15)

[Next page](https://community.mp3tag.de/t/ws-itunes/13478.md?page=17)
