# Call of TAG SOURCES for VARIOUS ARTISTS sampler

**URL:** https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510
**Category:** Support
**Created:** [August 7, 2024, 9:00am UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510 "2024-08-07T09:00:16Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Roland](https://community.mp3tag.de/user_avatar/community.mp3tag.de/roland/32/8001_2.png) [@Roland](https://community.mp3tag.de/u/Roland)
#### Post date: [August 7, 2024, 9:00am UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/1 "2024-08-07T09:00:16Z")

</div>

The call of TAG SOURCES for samplers with different artists differs for MUSICBRAINZ and DISCOGS.  
When MUSICBRAINZ is called, the misleading artist of the first track is transferred, not the ALBUMARTIST.  
Is this a bug or a feature?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 7, 2024, 9:20am UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/2 "2024-08-07T09:20:18Z")

</div>

Could you please show us a real example to reproduce this behaviour?

---

<div class="post-metadata">

### Author: ![Roland](https://community.mp3tag.de/user_avatar/community.mp3tag.de/roland/32/8001_2.png) [@Roland](https://community.mp3tag.de/u/Roland)
#### Post date: [August 7, 2024, 1:45pm UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/3 "2024-08-07T13:45:04Z")

</div>

Zunächst der Aufruf von DISCOGS:

 ![M-DO](https://community.mp3tag.de/uploads/default/original/3X/8/6/86a40308d48196af63502e20b20d93a174fa6e6b.jpeg)

Im Unterschied dazu der Aufruf von MUSICBRAINZ:

 ![M-MB](https://community.mp3tag.de/uploads/default/original/3X/7/7/77b51cedb646099d669800f49605aae99b7f9ec9.jpeg)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 7, 2024, 2:00pm UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/4 "2024-08-07T14:00:50Z")

</div>

I assume, you are referring to these two releases:

MB: [https://musicbrainz.org/release/297286cc-20fa-44ac-9113-025068ccb3e5](https://musicbrainz.org/release/297286cc-20fa-44ac-9113-025068ccb3e5)

 ![image](https://community.mp3tag.de/uploads/default/original/3X/c/0/c04fb5527ab0b71ef40610a962efbee758250366.png)

DG: [https://www.discogs.com/de/release/1727357-Various-The-Monterey-International-Pop-Festival](https://www.discogs.com/de/release/1727357-Various-The-Monterey-International-Pop-Festival)

 ![image](https://community.mp3tag.de/uploads/default/original/3X/2/4/24a917e2bff78a69c872a7ff1e882dc3ef956fed.png)

In both cases, I get **Various Artists** or **Various** in ALBUMARTIST:

MB:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/9/8/9815ed303f5b93d0145497f68de7a7a2182b3417.png)

DG:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/5/f/5f4f35e77609d431365294a6c772530273d567ea.png)

Can you please describe in more details, what you would expect to see in ALBUMARTIST?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 7, 2024, 2:11pm UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/5 "2024-08-07T14:11:08Z")

</div>

Or do you ask why the initial **DG** search call is builded with  
`[SearchBy]=Artist||$if2(%albumartist%,%artist%)...`  
and the initial **MB** search call is builded with  
`[SearchBy]=...Artist||$if(%artist%,$regexp(%artist%,'[+!(...`

---

<div class="post-metadata">

### Author: ![Roland](https://community.mp3tag.de/user_avatar/community.mp3tag.de/roland/32/8001_2.png) [@Roland](https://community.mp3tag.de/u/Roland)
#### Post date: [August 10, 2024, 11:35am UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/6 "2024-08-10T11:35:59Z")

</div>

Because the search with **Various Artist** (= albumartist) instead of John Phillips (artist of first song on disc1) brings wrong results.  
The search in discogs immediately brings up the right entries.

---

<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: [August 10, 2024, 4:13pm UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/7 "2024-08-10T16:13:41Z")

</div>

In Discogs the Artistname of album-compilations is "Various" instead of "Various Artists".  
So you have to search for "Various".  
If you have filled your albumartist-fiels with "Various Artists" and don't want to change the search manually each time you can change the script to  
`[SearchBy]=Artist||$if2($replace(%albumartist%,Various Artists,Various),%artist%)||&artist=%s||Album||%album%||&release_title=%s`

---

<div class="post-metadata">

### Author: ![Roland](https://community.mp3tag.de/user_avatar/community.mp3tag.de/roland/32/8001_2.png) [@Roland](https://community.mp3tag.de/u/Roland)
#### Post date: [August 15, 2024, 7:48am UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/8 "2024-08-15T07:48:58Z")

</div>

Searches in both DISCOGS and MUSICBRAINZ generally return the correct results if you start with the correct search terms.  
However, when searching in MUSICBRAINZ, MP3Tag always suggests the artist of the first track, even though ALBUMARTIST contains the correct value 'Various Artists'.  
Everything can be corrected manually, but the values for the correct programme logic are available.  
The Monterey album is just one example of this behaviour.

---

<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: [August 15, 2024, 9:47am UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/9 "2024-08-15T09:47:03Z")

</div>

> [@Roland](#):
>
> However, when searching in MUSICBRAINZ, MP3Tag always suggests the artist of the first track, even though ALBUMARTIST contains the correct value 'Various Artists'.  
> Everything can be corrected manually, but the values for the correct programme logic are available.

You are right for the MUSICBRAINZ-script. It searches for %artist% instead of %albumartist%. This was the same with discogs some time ago. I think a lot of people still don't fill their albumartist-tagfield.  
I myself habve been using ALBUMARTIST soon after starting with tagging mp3s and for compilations I use "Various Artists" for ALBUMARTIST. So it decided to change the scripts manually to use %albumartist% for search. But it was a little annoying that after every mp3tag-update the official scripts were replaced again. Therefore I decided to rename my edited scripts. The official websource scripts don't get so often changed and so it its much lesser effort to look now and then if something has changed than editing the script after each update.

As I wrote above I changed the Discogs script "Artist+Album" this way:

`[SearchBy]=Artist||$if2($replace(%albumartist%,Various Artists,Various),%artist%)||&artist=%s||Album||%album%||&release_title=%s`

As Discogs internally uses "Various" instead of "Various Artists" I had to change the official script for my use. Discogs often shows results for "Various Artists" but in very much cases I get "Sorry, no entries are matching your search criteria" if I don't use the replace-function.

For Musicbrainz I changed the script to:

`[SearchBy]=Album||$regexp(%album%,'[+!(){}\[\]^"~*?:\\]',)||release:%s||Artist||$if($if2(%albumartist%,%artist%),$regexp($if2(%albumartist%,%artist%),'[+!(){}\[\]^"~*?:\\]',),)||%20AND%20artist:%28%s%29`

As I am far away from being good in scripting I think there may be better ways to achieve the goal but it seems to work for me. Maybe someone can improve the script.

Anyway I suggest to change **all** official scripts the way to prefer ALBUMARTIST if there is content in the tag.  
Maybe the discogs-script should be changed to:  
`[SearchBy]=Artist||$if2($replace(%albumartist%,Various Artists,Various,VA,Various,Diverse,Various),%artist%)||&artist=%s||Album||%album%||&release_title=%s`

I think the replace-pairs should even be more respecting language differences.

---

<div class="post-metadata">

### Author: ![Roland](https://community.mp3tag.de/user_avatar/community.mp3tag.de/roland/32/8001_2.png) [@Roland](https://community.mp3tag.de/u/Roland)
#### Post date: [August 18, 2024, 1:17pm UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/10 "2024-08-18T13:17:20Z")

</div>

I didn't know 😮 that each user can or must manage their own search scripts.  
Where can I find the scripts?  
Can the return fields also be configured?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 18, 2024, 1:26pm UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/11 "2024-08-18T13:26:37Z")

</div>

> [@Roland](#):
>
> Where can I find the scripts?

Menu File -\> Open Configuration Folder -\> Open the folder ` \data` -\> Open the folder `\sources`

> [@Roland](#):
>
> Can the return fields also be configured?

Yes. But you need to know some [scripting knowledge](https://docs.mp3tag.de/tag-sources/development/#how-to-start).  
If you just want to deselect some fields, then you can enable/disable them directly in the search result window called "Adjust tag information" of your script.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [March 1, 2025, 7:42am UTC](https://community.mp3tag.de/t/call-of-tag-sources-for-various-artists-sampler/65510/12 "2025-03-01T07:42:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
