# Additional Parsing of AMG (Web Sources)

**URL:** https://community.mp3tag.de/t/additional-parsing-of-amg-web-sources/2178
**Category:** Support
**Created:** [August 10, 2005, 5:39am UTC](https://community.mp3tag.de/t/additional-parsing-of-amg-web-sources/2178 "2005-08-10T05:39:25Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![spunch](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/e47c2d/32.png) [@spunch](https://community.mp3tag.de/u/spunch)
#### Post date: [August 10, 2005, 5:39am UTC](https://community.mp3tag.de/t/additional-parsing-of-amg-web-sources/2178/1 "2005-08-10T05:39:25Z")

</div>

I'm trying to create a web sources script for AMG. Unlike the original script, i only am interested in parsing the AMG track picks (those little V signs aside of the track title, usually indicating the most notable/popular tracks of an album).

But I'm no coder and couldn't get my script to work.  
This is what I came up with, I tried to make it resemble amg.scr track parser as much as I could.

```
outputto "comment"
findline "<tr class=\"visible\""
do
   findline "<TD class=\"cell-img\"" 2
   moveline 1
   if "<img src=\"/i/pages/site/icons/check.gif\" alt=\"AMG Pick\" title=\"AMG Pick\" />"
      say "Notable"
   endif
   findline "></div>"
   moveline 1
while "<tr class=\"visible\""

```

It looks fine, but when you try it, it outputs Notable to ALL comment tags the number of times it is indicated, really not what I was aiming for.

For example [this album](http://www.allmusic.com/cg/amg.dll?p=amg&sql=10:1orv28vy053a) has 3 tracks indicated, so what this script will do is output "NotableNotableNotable" to all tracks, instead of "Noteable" to each indicated track.

Please help.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [August 10, 2005, 6:28am UTC](https://community.mp3tag.de/t/additional-parsing-of-amg-web-sources/2178/2 "2005-08-10T06:28:43Z")

</div>

Note: _outputto "field"_ can only have different content if "tracks" is used.  
If another field is used, they all get the same values.  
Only "tracks" supports the _say "|"_ command.

```
outputto "tracks"
findline "<tr class=\"visible\""
do
  findline "<TD class=\"cell-img\"" 2
  moveline 1
  if "<img src=\"/i/pages/site/icons/check.gif\" alt=\"AMG Pick\" title=\"AMG Pick\" />"
     say "Notable"
  endif
  say "|"
  findline "></div>"
  moveline 1
while "<tr class=\"visible\""

```

This works, but it will overwrite your TITLE fields.

---

<div class="post-metadata">

### Author: ![spunch](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/e47c2d/32.png) [@spunch](https://community.mp3tag.de/u/spunch)
#### Post date: [August 10, 2005, 6:40am UTC](https://community.mp3tag.de/t/additional-parsing-of-amg-web-sources/2178/3 "2005-08-10T06:40:52Z")

</div>

Oho, it works. But then again, I'll be losing my titles everytime I use it.

Any way of overcoming this minor difficulty? I thought maybe using the Tags window (alt+t) and temporarily renaming the TITLE fields to something else, but it's stubborn, it wouldn't do it.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [August 10, 2005, 6:57am UTC](https://community.mp3tag.de/t/additional-parsing-of-amg-web-sources/2178/4 "2005-08-10T06:57:57Z")

</div>

You can make 2 different actions to do this semi-automatic.

The first copies your TITLE tags to another field. The name is arbitrary, e.g TEMP  
Then you run your AMG web query.  
After that, the second action that  
Copies the current TITLE tags to COMMENT  
Copies the real titles from TEMP to TITLE  
and finally deletes TEMP

Copying is done with "Format value" and deleting, I don't have the english translation, but maybe it is called "Remove fields"

---

<div class="post-metadata">

### Author: ![spunch](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/e47c2d/32.png) [@spunch](https://community.mp3tag.de/u/spunch)
#### Post date: [August 10, 2005, 7:19am UTC](https://community.mp3tag.de/t/additional-parsing-of-amg-web-sources/2178/5 "2005-08-10T07:19:41Z")

</div>

Thanks and all, but Format Value doesn't seem to copy anything. It asks me for a field and a formatstring, and when I give him a field, say TITLE, and I give him a string, say TEMP, it bluntly writes TEMP in all TITLE fields.

EDIT: I'VE JUST READ THE DOCUMENTATION! Thanks a bunch, it worked!

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [August 10, 2005, 7:25am UTC](https://community.mp3tag.de/t/additional-parsing-of-amg-web-sources/2178/6 "2005-08-10T07:25:52Z")

</div>

For example, to copy the Title tags to TEMP, you enter this:  
Field:  
TEMP  
Formatstring:  
%title%

edit: ok, nice to hear.

---

<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: [February 9, 2026, 12:19pm UTC](https://community.mp3tag.de/t/additional-parsing-of-amg-web-sources/2178/7 "2026-02-09T12:19:26Z")

</div>


