[WS] iTunes


#204

First of all I would like to thank JonaaaBR and pone for this outstanding work!
The script is awesome!!!
Thanks to all the others who helped with it!

Is it possible to integrate the "real" composer? I checked this tag in one of my purchased iTunes songs with a composer and (not surprising) it differs from the artist name... Currently the artist name is just copied to the tag "COMPOSER" and "COMPOSERSORT".

I hope that it is possible to get this data as well and to integrate it in this script.

Thank you!
Muito obrigado! :slight_smile:


#205

Yeah i know it but... iTunes API don't provide the real composer...


#206

Thanks a lot ! The script works PERFECTLY !


#207

Hello again, it haven't been any updates for a while (that's because there is not anything new on iTunes API :smiley:) so, i made another little update just to fix some bugs...

iTunes_Update_30.zip (120 KB)


#208
QUOTE (xaoc2012 @ Mar 28 2016, 09:31) <{POST_SNAPBACK}>
how fix code for download big covers
outputto "COVERURL"
regexpreplace "100x100" "100000x100000"
sayregexp "(?<=\"artworkUrl100\":\").+?(?=\")" ", " "}"

for example
https://itunes.apple.com/us/album/thebeats-2/id1095824807
now download file 623kb size 3000x3000, but 100000x100000-999.jpg ~ 1,8Mb size 3000x3000

That's wrong bro... here's the correct one:

outputto "COVERURL"
regexpreplace "100x100bb" "100000x100000-999"
sayregexp "(?<=\"artworkUrl100\":\").+?(?=\")" ", " "}"

#209

Another update. UPDATE 34

+Added "TOTALDISCS" tag.

iTunes_Update_34.zip (120 KB)


#210

Hello, i have a big Problem. I started with the Version 1.1. And changed it in the meantime a lot.
But to my Problem 1

Problem 1 FIXED

Problem 2:
How i filter Videos in Albums out? Cause he want then tagg music from incomplete albums in the itunes store with the metadata from the musicvideos. here the link for an example.
(https://itunes.apple.com/de/album/rtl-hits-2013/id731486409)


#211

I found the Answer for Problem 1:

You just must paste this in your Code:
outputto "TITLE"
sayoutput "TITLE"

Works Perfect <3.

Maybe you can use this Information in your Scripts too :slight_smile: IT F+++ing works. Im so proud :smiley:

But would be nice if someone could help me with Problem 2. I read the Docu from Apple Search API.

And its really good and simple, but as Apple says in the docs, it dont works :frowning:


#212

@pone @JonaaaBR I absolutely love your script :wink: , I have been using it since years, and finally decided to make an account here to thank you for making it. :rolleyes: I have various new ideas, I even fixed and modified your script in past for my personal use. The only thing I still am not able to fix is the empty Tracklist in the Track List dialog whenever the album has only one track in it. :frowning:

For example:

https://itunes.apple.com/lookup?country=US&...p;id=1111413653

link has following data in it:

{  
   "resultCount":2,
   "results":[  
      {  
         "wrapperType":"collection",
         "collectionType":"Album",
         "artistId":444520760,
         "collectionId":1111413653,
         "amgArtistId":2089089,
         "artistName":"J Balvin",
         "collectionName":"Bobo - Single",
         "collectionCensoredName":"Bobo - Single",
         "artistViewUrl":"https://itunes.apple.com/us/artist/j-balvin/id444520760?uo=4",
         "collectionViewUrl":"https://itunes.apple.com/us/album/bobo-single/id1111413653?uo=4",
         "artworkUrl60":"http://is1.mzstatic.com/image/thumb/Music30/v4/da/8e/5b/da8e5b85-
          f09f-1771-e59f-cb33d1d7ad83/source/60x60bb.jpg",
         "artworkUrl100":"http://is1.mzstatic.com/image/thumb/Music30/v4/da/8e/5b/da8e5b
          85-f09f-1771-e59f-cb33d1d7ad83/source/100x100bb.jpg",
         "collectionPrice":1.29,
         "collectionExplicitness":"notExplicit",
         "trackCount":1,
         "copyright":"℗ 2016 Capitol Latin",
         "country":"USA",
         "currency":"USD",
         "releaseDate":"2016-05-13T07:00:00Z",
         "primaryGenreName":"Latin Pop"
      },
      {  
         "wrapperType":"track",
         "kind":"song",
         "artistId":444520760,
         "collectionId":1111413653,
         "trackId":1111413806,
         "artistName":"J Balvin",
         "collectionName":"Bobo - Single",
         "trackName":"Bobo",
         "collectionCensoredName":"Bobo - Single",
         "trackCensoredName":"Bobo",
         "artistViewUrl":"https://itunes.apple.com/us/artist/j-balvin/id444520760?uo=4",
         "collectionViewUrl":"https://itunes.apple.com/us/album/bobo/id1111413653?
          i=1111413806&uo=4",
         "trackViewUrl":"https://itunes.apple.com/us/album/bobo/id1111413653?
          i=1111413806&uo=4",
         "previewUrl":"http://audio.itunes.apple.com/apple-assets-us-std-
          000001/AudioPreview20/v4/bb/22/15/bb221555-add5-4a8f-fd1a-
          b674bae935cc/mzaf_1961183931300299201.plus.aac.p.m4a",
         "artworkUrl30":"http://is1.mzstatic.com/image/thumb/Music30/v4/da
          /8e/5b/da8e5b85-f09f-1771-e59f-cb33d1d7ad83/source/30x30bb.jpg",
         "artworkUrl60":"http://is1.mzstatic.com/image/thumb/Music30/v4/da/8
         e/5b/da8e5b85-f09f-1771-e59f-cb33d1d7ad83/source/60x60bb.jpg",
         "artworkUrl100":"http://is1.mzstatic.com/image/thumb/Music30/v4/da/8
         e/5b/da8e5b85-f09f-1771-e59f-cb33d1d7ad83/source/100x100bb.jpg",
         "collectionPrice":1.29,
         "trackPrice":1.29,
         "releaseDate":"2016-05-13T07:00:00Z",
         "collectionExplicitness":"notExplicit",
         "trackExplicitness":"notExplicit",
         "discCount":1,
         "discNumber":1,
         "trackCount":1,
         "trackNumber":1,
         "trackTimeMillis":209196,
         "country":"USA",
         "currency":"USD",
         "primaryGenreName":"Latin Pop",
         "isStreamable":true
      }
   ]
}

according to the script the parser should parse out the track and show it in the list. but it doesn't.

Heres Preview:

:slight_smile:

PS some simple suggestions

1: @pone maybe you could update first post in this topic with latest version info and download links. :slight_smile:

2: reducing the cover art size back too 1200x1200 would save a lot of space and also it would make arts load fast on most of the mobile phones. In fact sizes greater than 1200x1200 don't even make much difference in the viewing quality on small screens, and most of the apps don't display the art larger than 1000 pixels unless you are on a screen with resolution greater than 1080p, and in my opinion 1200x1200 looks fine even on maximized VLC media player on 4K displays. :slight_smile:


#213

Yes i tested a single 1 Track too. It don't work. I have no time next days. But maybe i find a fix then i post it.


#214

Cool! Hoping you will succeed! I tried for 5-6 hours lol


#215

He,

i tested it again, and cause there is only 1 metadata for one song, u see the informationen in the box left from the cover.

Just Click Ok, and u be done, no need to chance anything from the code :-).
U just must press OK, to save the tag in your Single File :slight_smile:

I only have the Bug in my Script, that he dont show the Coverart. Its blank, but Coverart is later correct in the Metadata. Dont know why.

When u want change something in your metadata from apple u can edit every field in additional Informationen. I Hope it helped you :slight_smile:


#216
QUOTE (ActualAkshay @ Jun 24 2016, 14:34) <{POST_SNAPBACK}>
@pone @JonaaaBR I absolutely love your script :wink: , I have been using it since years, and finally decided to make an account here to thank you for making it. :rolleyes: I have various new ideas, I even fixed and modified your script in past for my personal use. The only thing I still am not able to fix is the empty Tracklist in the Track List dialog whenever the album has only one track in it. :frowning:

For example:

https://itunes.apple.com/lookup?country=US&...p;id=1111413653

link has following data in it:

{  
   "resultCount":2,
   "results":[  
      {  
         "wrapperType":"collection",
         "collectionType":"Album",
         "artistId":444520760,
         "collectionId":1111413653,
         "amgArtistId":2089089,
         "artistName":"J Balvin",
         "collectionName":"Bobo - Single",
         "collectionCensoredName":"Bobo - Single",
         "artistViewUrl":"https://itunes.apple.com/us/artist/j-balvin/id444520760?uo=4",
         "collectionViewUrl":"https://itunes.apple.com/us/album/bobo-single/id1111413653?uo=4",
         "artworkUrl60":"http://is1.mzstatic.com/image/thumb/Music30/v4/da/8e/5b/da8e5b85-
          f09f-1771-e59f-cb33d1d7ad83/source/60x60bb.jpg",
         "artworkUrl100":"http://is1.mzstatic.com/image/thumb/Music30/v4/da/8e/5b/da8e5b
          85-f09f-1771-e59f-cb33d1d7ad83/source/100x100bb.jpg",
         "collectionPrice":1.29,
         "collectionExplicitness":"notExplicit",
         "trackCount":1,
         "copyright":"℗ 2016 Capitol Latin",
         "country":"USA",
         "currency":"USD",
         "releaseDate":"2016-05-13T07:00:00Z",
         "primaryGenreName":"Latin Pop"
      },
      {  
         "wrapperType":"track",
         "kind":"song",
         "artistId":444520760,
         "collectionId":1111413653,
         "trackId":1111413806,
         "artistName":"J Balvin",
         "collectionName":"Bobo - Single",
         "trackName":"Bobo",
         "collectionCensoredName":"Bobo - Single",
         "trackCensoredName":"Bobo",
         "artistViewUrl":"https://itunes.apple.com/us/artist/j-balvin/id444520760?uo=4",
         "collectionViewUrl":"https://itunes.apple.com/us/album/bobo/id1111413653?
          i=1111413806&uo=4",
         "trackViewUrl":"https://itunes.apple.com/us/album/bobo/id1111413653?
          i=1111413806&uo=4",
         "previewUrl":"http://audio.itunes.apple.com/apple-assets-us-std-
          000001/AudioPreview20/v4/bb/22/15/bb221555-add5-4a8f-fd1a-
          b674bae935cc/mzaf_1961183931300299201.plus.aac.p.m4a",
         "artworkUrl30":"http://is1.mzstatic.com/image/thumb/Music30/v4/da
          /8e/5b/da8e5b85-f09f-1771-e59f-cb33d1d7ad83/source/30x30bb.jpg",
         "artworkUrl60":"http://is1.mzstatic.com/image/thumb/Music30/v4/da/8
         e/5b/da8e5b85-f09f-1771-e59f-cb33d1d7ad83/source/60x60bb.jpg",
         "artworkUrl100":"http://is1.mzstatic.com/image/thumb/Music30/v4/da/8
         e/5b/da8e5b85-f09f-1771-e59f-cb33d1d7ad83/source/100x100bb.jpg",
         "collectionPrice":1.29,
         "trackPrice":1.29,
         "releaseDate":"2016-05-13T07:00:00Z",
         "collectionExplicitness":"notExplicit",
         "trackExplicitness":"notExplicit",
         "discCount":1,
         "discNumber":1,
         "trackCount":1,
         "trackNumber":1,
         "trackTimeMillis":209196,
         "country":"USA",
         "currency":"USD",
         "primaryGenreName":"Latin Pop",
         "isStreamable":true
      }
   ]
}

according to the script the parser should parse out the track and show it in the list. but it doesn't.

Heres Preview:

:slight_smile:

PS some simple suggestions

1: @pone maybe you could update first post in this topic with latest version info and download links. :slight_smile:

2: reducing the cover art size back too 1200x1200 would save a lot of space and also it would make arts load fast on most of the mobile phones. In fact sizes greater than 1200x1200 don't even make much difference in the viewing quality on small screens, and most of the apps don't display the art larger than 1000 pixels unless you are on a screen with resolution greater than 1080p, and in my opinion 1200x1200 looks fine even on maximized VLC media player on 4K displays. :slight_smile:

Sorry but I don't see the problem on it, I used the original amine and pone's script, and this "problem" was present, btw didn't found the fix for it... But if you find I will certainly update and include the credits to you :wink:

PS: This "problem" with "single" songs is also present on my personal MusicBrainz Lyrics script and also on Spotify script, i don't know how to fix it, i think this is a problem with the program itself, not the script (I THINK)

PS2: The "problem" with the album art can be fixed by yourself, just put "100x100" "1200x1200" on "COVERURL"


#217
QUOTE (cuddles @ Jun 26 2016, 08:35) <{POST_SNAPBACK}>
He,

i tested it again, and cause there is only 1 metadata for one song, u see the informationen in the box left from the cover.

Just Click Ok, and u be done, no need to chance anything from the code :-).
U just must press OK, to save the tag in your Single File :slight_smile:

I only have the Bug in my Script, that he dont show the Coverart. Its blank, but Coverart is later correct in the Metadata. Dont know why.

:smiley:


#218
QUOTE (cuddles @ Jun 26 2016, 08:35) <{POST_SNAPBACK}>
He,

i tested it again, and cause there is only 1 metadata for one song, u see the informationen in the box left from the cover.

Just Click Ok, and u be done, no need to chance anything from the code :-).
U just must press OK, to save the tag in your Single File :slight_smile:

I only have the Bug in my Script, that he dont show the Coverart. Its blank, but Coverart is later correct in the Metadata. Dont know why.

:slight_smile:


#219

Yes! I think the same that theres a bit problem with program when it comes to parsing out single track. I do know how to change the art art size, I edited the first script to get 1200x1200 arts when the initial script had 100x100 cover art parser (which was ofc updated later), also I created scripts for different countries too before you guys updated it here, it was a single change in URL. I would definitely share any further changes if I make them. :slight_smile: Thanks anyway!~


#220

here's how you can change the album art resolution to any resolution you want:

Original Code (It will search for the MAX Resolution Available)

outputto "COVERURL"
regexpreplace "100x100bb" "100000x100000-999"
sayregexp "(?<=\"artworkUrl100\":\").+?(?=\")" ", " "}"

1200x1200 MAX:

outputto "COVERURL"
regexpreplace "100x100" "1200x1200"
sayregexp "(?<=\"artworkUrl100\":\").+?(?=\")" ", " "}"

About the countries, it's really easy to make more countries on script, there are the country codes on iTunes Documentation :slight_smile:

Oh, i almost forgot, on 2.78 version of MP3Tag, we can now use the ITUNESOWNER and ITUNESACCOUNT tags...


#221

Lol i wrote the question and when i search the line in code, i fixed it myself :smiley: :smiley: :smiley: :smiley: :smiley:.

I had an problem with that Album.
https://itunes.apple.com/de/album/bis-zum-b...ion/id270585930

Cause the Albumnameinfo "{Live}"

i added this to my Code:

findline "wrapperType""
joinuntil "}"
replace "\"" """
replace "?uo=4" ""
replace "{Live}" "(Live)"

Titelschleife

findline "wrapperType"" 2 1
do
joinuntil "}"

          replace "\\\"" "&quot;"
        replace "?uo=4" ""

             <u><b>replace "{Live}" "(Live)"</b></u>

This works perfect, i recommended that you should add this to the next update script, i soon release my version too. then u maybe find the bug with singles. I only see no coverpics on singles.
EPs, Albums work perfect, and the cover is correct in meta in single too. its just a lil bug :smiley:.

But when u find a better workaround if some artist use { or } in his Albumname or Tracks, let me please know i hope this helps someone :slight_smile:

And ITUNESOWNER change dont work, only with Hexeditor :frowning:


#222

I think you are having a bad luck, tested this album with my version of script, no problems at all... having coverpics on singles, everything is fine...

EDIT:

I found a lot of issues on your album, not only this "{Live}", i found a lot of problems, gonna check here.

EDIT2:

I'm starting to think that this problem with "{}" is the program? trying everything that i have here, no success.

Coverpics on SINGLES:


#223

Hi there everybody!

Can somebody sum up the situation for me? Haven't been here in the forum for two years or so.

Update 34? Amazing Jonaaa! Thank you for keeping the sript alive!
Or is it 14? Great nevertheless.
Also thanks to all others who contributed here.

Are there different versions? Maybe a script with only the basci tag fields in standard formats? Is there a need for something like that?

Are there any bugs where i might help? (Not sure if I find the time)

Which posts should I link to in the starting post? Update 34 (14)?

And, only curiosity, when did my script stop working? I never really used it much since I tag mainly with discogs.