[WS] iTunes

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 (5.9 KB)

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:

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 :slight_smile:

v0.3.1.zip (143.5 KB)

3 Likes

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

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

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!

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!

The script is working fine.

2 Likes

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

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 (5.9 KB)

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

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

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

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?

@mirogeorgiev97
You could try another script for Apple:

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

Also the Deezer srcipt grabs the composer:

2 Likes

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

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

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/

0: SSL error:
WINHTTP_CALLBACK_STATUS_FLAG_CERT_CN_INVALID
SSL common name does not match.

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

I just tested. It's still working here.

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

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

Adjusted the script to allow 1200x1200 resolution artwork.
iTunes.src (3.3 KB)