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

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [June 17, 2017, 10:45pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/265 "2017-06-17T22:45:41Z")

</div>

> [@yourdadsmusic](#):
>
> An example of my ideal Publisher field; **℗ 2017 Kemosabe Records/Columbia Records, a Division of Sony Music Entertainment**
> 
> would turn into **Kemosabe Records**
> 
> sorry for the ignorance! I really appreciate the help

Try this (just some of my modifications to the script I use personally):

```
# PUBLISHER
    outputto "PUBLISHER"
    regexpreplace "\,\s[Uu]nder\s[Ee]xclusive\s[Ll]icense.*?(\",)" "$1"
    regexpreplace "(?:(?<=\"copyright\":\")(?:[^A-Za-z0-9]\s)?\d{4}\s([^/]*).*?(\",))" "$1$2"
    sayregexp "(?<=\"copyright\":\").+?(?=\")" ", " "}"

```

---

<div class="post-metadata">

### Author: ![yourdadsmusic](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/eb9ed0/32.png) [@yourdadsmusic](https://community.mp3tag.de/u/yourdadsmusic)
#### Post date: [June 21, 2017, 5:06pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/266 "2017-06-21T17:06:25Z")

</div>

QUOTE (ms6676749 @ Jun 18 2017, 02:45) \<{POST\_SNAPBACK}\>

Try this (just some of my modifications to the script I use personally):

```
# PUBLISHER
    outputto "PUBLISHER"
    regexpreplace "\,\s[Uu]nder\s[Ee]xclusive\s[Ll]icense.*?(\",)" "$1"
    regexpreplace "(?:(?<=\"copyright\":\")(?:[^A-Za-z0-9]\s)?\d{4}\s([^/]*).*?(\",))" "$1$2"
    sayregexp "(?<=\"copyright\":\").+?(?=\")" ", " "}"<!--QuoteEnd--></div><!--QuoteEEnd-->

```

Thanks so much again, its working perfectly. learning from what you gave me I added a line to remove ", a division of" clauses that come up alone sometimes; example- **Epic Records, A Division of Sony...**. you can see how i added below. It's amazing how helpful you guys are on this forum

```
outputto "PUBLISHER"
regexpreplace "\,\s[Uu]nder\s[Ee]xclusive\s[Ll]icense.*?(\",)" "$1"
regexpreplace "\,\s[Aa]\s[Dd]ivision.*?(\",)" "$1"
regexpreplace "(?:frowning:?<=\"copyright\":\")(?:[^A-Za-z0-9]\s)?\d{4}\s([^/]*).*?(\",))" "$1$2"
sayregexp "(?<=\"copyright\":\").+?(?=\")" ", " "}"

```

I am curious about the indentation of some lines though, is this just for organization or does mp3tag actually read the indented lines differently? my script seems to be working fine without the indentation

---

<div class="post-metadata">

### Author: ![yourdadsmusic](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/eb9ed0/32.png) [@yourdadsmusic](https://community.mp3tag.de/u/yourdadsmusic)
#### Post date: [June 21, 2017, 5:13pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/267 "2017-06-21T17:13:54Z")

</div>

has anyone changed this window to automatically prompt "No" instead of "Yes" to increase workflow speed? I've tried to find this window in Resource Hacker but haven't been able to

![](http://i.imgur.com/YTmBXmU.png)

---

<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: [June 21, 2017, 5:27pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/268 "2017-06-21T17:27:26Z")

</div>

If you press Alt-N on the keyboard (or perhaps even only "N") you can close the window almost as easy as pressing enter.

Also, there are some options in Tools\>Option\>Messages where you can tune which messages you want to see.

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [June 21, 2017, 8:37pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/269 "2017-06-21T20:37:50Z")

</div>

> [@yourdadsmusic](#):
>
> I am curious about the indentation of some lines though, is this just for organization or does mp3tag actually read the indented lines differently? my script seems to be working fine without the indentation

Organization. It is easier for me to find stuff I need to edit that way.

---

<div class="post-metadata">

### Author: ![yourdadsmusic](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/eb9ed0/32.png) [@yourdadsmusic](https://community.mp3tag.de/u/yourdadsmusic)
#### Post date: [June 26, 2017, 9:37pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/270 "2017-06-26T21:37:04Z")

</div>

> [@ohrenkino](#):
>
> If you press Alt-N on the keyboard (or perhaps even only "N") you can close the window almost as easy as pressing enter.

works great thanks a million

> [@ms6676749](#):
>
> Organization. It is easier for me to find stuff I need to edit that way.

ah makes sense.

Ok this is likely my last question so I can finally stop bothering you guys. Regarding the [IndexUrl] and [AlbumUrl], I want the script to search a different index by the track name not the album name, so that when entering my SearchBy prompt of "%artist% %title%" the result will come up with the album containing that track even if the %title% isn't present in the album name.  
I've tried some combinations of entity=musicTRACK and adding some attributes but no combinations i've used have gotten results so I'm wondering if i could get some help here as well. Thank you again

---

<div class="post-metadata">

### Author: ![xaoc2012](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/dec6dc/32.png) [@xaoc2012](https://community.mp3tag.de/u/xaoc2012)
#### Post date: [July 10, 2017, 1:19pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/271 "2017-07-10T13:19:53Z")

</div>

Error script!  
[https://itunes.apple.com/de/album/till-i-di...ts/id1250936060](https://itunes.apple.com/de/album/till-i-die-vol-1-radio-edits/id1250936060)

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [July 16, 2017, 11:05pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/272 "2017-07-16T23:05:02Z")

</div>

If there's an error, please post the last line of %AppData%\Mp3tag\data\scripterror.log here together with the name of the source used.

---

<div class="post-metadata">

### Author: ![xaoc2012](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/dec6dc/32.png) [@xaoc2012](https://community.mp3tag.de/u/xaoc2012)
#### Post date: [July 17, 2017, 1:17pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/273 "2017-07-17T13:17:44Z")

</div>

scripterror.log empty  
error only this album, others o.k.

 ![](https://community.mp3tag.de/uploads/default/original/2X/9/9b1d51fa2312a286734c727687af9e422f430861.jpg)

---

<div class="post-metadata">

### Author: ![kolongakevour](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/91b2a8/32.png) [@kolongakevour](https://community.mp3tag.de/u/kolongakevour)
#### Post date: [July 31, 2017, 10:32am UTC](https://community.mp3tag.de/t/ws-itunes/13478/276 "2017-07-31T10:32:52Z")

</div>

Hi,

Is there a way to search by title (track name) and derive the album name from the list.

---

<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: [July 31, 2017, 10:45am UTC](https://community.mp3tag.de/t/ws-itunes/13478/277 "2017-07-31T10:45:56Z")

</div>

see this post:  
[[WS] iTunes](https://community.mp3tag.de/t/13478/74)

---

<div class="post-metadata">

### Author: ![kolongakevour](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/91b2a8/32.png) [@kolongakevour](https://community.mp3tag.de/u/kolongakevour)
#### Post date: [July 31, 2017, 11:11am UTC](https://community.mp3tag.de/t/ws-itunes/13478/278 "2017-07-31T11:11:10Z")

</div>

> [@ohrenkino](#):
>
> see this post:  
> [[WS] iTunes](https://community.mp3tag.de/t/13478/74)

Thank you very much!

---

<div class="post-metadata">

### Author: ![mamimumemo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/13edae/32.png) [@mamimumemo](https://community.mp3tag.de/u/mamimumemo)
#### Post date: [August 7, 2017, 2:32pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/279 "2017-08-07T14:32:06Z")

</div>

Thanks for your job.  
But I have some question.

First. There is multiple disc album.  
When disc 1 have 15 track, script makes Disc 2 starting tracknumber 16, not tracknumber 01.  
Can I fix it?

Second. Year Tag, likes 2016-03-02T08:00:00Z.  
But I want use '2016-03-02'  
I looked method of '2016' in this artcle, but '2016-03-02' coudn't find.

---

<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: [August 7, 2017, 4:56pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/280 "2017-08-07T16:56:57Z")

</div>

> [@mamimumemo](#):
>
> ... starting tracknumber 16, not tracknumber 01.  
> Can I fix it?
> 
> Second. Year Tag, likes 2016-03-02T08:00:00Z.  
> But I want use '2016-03-02'  
> I looked method of '2016' in this artcle, but '2016-03-02' coudn't find.

First: after loading the data from the web source, do some post-processing.  
Renumber the tracks with the tracknumbering wizard.

Second: YEAR should only contain 4 digits.  
The fomat you mention is suitable for RELEASETIME.

To cut the left four digits use an action of the type "Format value" for YEAR,  
Format string: $left(%year%,4)

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [September 12, 2017, 12:30pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/281 "2017-09-12T12:30:38Z")

</div>

You can get ultra hi-res artworks at 1500\*1500px with this:

```
sayregexp "(?<=\"artworkUrl100\":\").+?(?=\")" ", " "}"
regexpreplace "100x100bb" "10000x10000-999"

outputto "COVERURL"
sayregexp "(?<=\"artworkUrl100\":\").+?(?=\")" ", " "}"

```

Full Script for US iTunes website only. Change this a per threads recommendations for other countries.

[i\_Tunes\_\_US\_\_stevehero\_Edit\_\_\_Artwork\_.src](https://community.mp3tag.de/uploads/default/original/2X/d/d7b21a437f478b160f941295b5e179064f3c6e32.src) (3.8 KB)

This might have been done by someone but a quick thread search yielded no results. 🙂

[i\_Tunes\_\_US\_\_stevehero\_Edit\_\_\_Artwork\_.src](https://community.mp3tag.de/uploads/default/original/2X/d/d7b21a437f478b160f941295b5e179064f3c6e32.src) (3.8 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: [October 5, 2017, 9:10am UTC](https://community.mp3tag.de/t/ws-itunes/13478/282 "2017-10-05T09:10:03Z")

</div>

> [@stevehero](#):
>
> You can get ultra hi-res artworks at 1500\*1500px with this:
> 
> ```
> sayregexp "(?<=\"artworkUrl100\":\").+?(?=\")" ", " "}"
> regexpreplace "100x100bb" "10000x10000-999"
> 
> outputto "COVERURL"
> sayregexp "(?<=\"artworkUrl100\":\").+?(?=\")" ", " "}"
> 
> ```
> 
> Full Script for US iTunes website only. Change this a per threads recommendations for other countries.
> 
> [i\_Tunes\_\_US\_\_stevehero\_Edit\_\_\_Artwork\_.src](https://community.mp3tag.de/uploads/default/original/2X/d/d7b21a437f478b160f941295b5e179064f3c6e32.src) (3.8 KB)
> 
> This might have been done by someone but a quick thread search yielded no results. 🙂

Nice job, i'm happy to see that the script's still working 😉

---

<div class="post-metadata">

### Author: ![djanthony93](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/7993a0/32.png) [@djanthony93](https://community.mp3tag.de/u/djanthony93)
#### Post date: [January 15, 2018, 10:48pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/283 "2018-01-15T22:48:05Z")

</div>

not working for me

 ![](https://i.imgur.com/jEekyal.png)

---

<div class="post-metadata">

### Author: ![stevvs](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@stevvs](https://community.mp3tag.de/u/stevvs)
#### Post date: [October 25, 2018, 3:35pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/284 "2018-10-25T15:35:01Z")

</div>

Hello,

I have a problem with the script for a few days, I would like to know how to solve it.

![mp3tag%20error](https://community.mp3tag.de/uploads/default/original/2X/0/0faff54744bb0972b8fa636f0822800fda72f291.png)

Thanks

---

<div class="post-metadata">

### Author: ![edkimera](https://community.mp3tag.de/user_avatar/community.mp3tag.de/edkimera/32/5795_2.png) [@edkimera](https://community.mp3tag.de/u/edkimera)
#### Post date: [October 25, 2018, 5:00pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/285 "2018-10-25T17:00:23Z")

</div>

Is there anyone else with that error? You know how to fix it?

![image](https://community.mp3tag.de/uploads/default/original/2X/5/5740b71205e6a752737559a6dc5b990bf2611707.png)

---

<div class="post-metadata">

### Author: ![SLB](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@SLB](https://community.mp3tag.de/u/SLB)
#### Post date: [October 25, 2018, 9:04pm UTC](https://community.mp3tag.de/t/ws-itunes/13478/286 "2018-10-25T21:04:57Z")

</div>

Yes. If you try the url with your browser it's working.

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

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