# Web Source Framework Discussion

**URL:** <https://community.mp3tag.de/t/web-source-framework-discussion/1682>\
**Category:** Web Sources Scripts\
**Created:** [February 7, 2005, 8:18pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682 "2005-02-07T20:18:54Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![hunger01](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/e480ec/32.png) [@hunger01](https://community.mp3tag.de/u/hunger01)\
**Post date:** [March 25, 2005, 4:22pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/21 "2005-03-25T16:22:51Z")

</div>

hi weakling child,  
im not sure, but i think, your umlaut issue has something to do with the missing unicode support in web source framework. I noticed the same with korean font bevore. 😕  
As far i understood, unicode is not going to be support that soon... only thing we can do is hoping and waiting...  
best regards  
yo.

---

<div class="post-metadata">

**Author:** ![A\_Weakling\_Child](https://community.mp3tag.de/user_avatar/community.mp3tag.de/a_weakling_child/32/62_2.png) [@A\_Weakling\_Child](https://community.mp3tag.de/u/A_Weakling_Child)\
**Post date:** [March 25, 2005, 4:26pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/22 "2005-03-25T16:26:12Z")

</div>

found another bug - when search results are listed, not all of the releases are showing.

[http://www.discogs.com/artist/Solar+X](http://www.discogs.com/artist/Solar+X) shows 6 releases, while search results only 5.

i'm almost sure that it's because 6th release goes after release that has that "þ" symbol. is there a way to skip those symbols?

EDIT: hi hunger01, just noticed your post. i thought about it. if they are not supprted, can they just be skipped?

EDIT2: regarding release not showing. it's not about that "þ" symbol. "þ" symbol is in the 4th release, 5th reads well & 6th is not showing. please consider.

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [March 25, 2005, 4:36pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/23 "2005-03-25T16:36:15Z")

</div>

It has nothing to do with Unicode and I'll try to fix it when I find some spare time.

Thanks!

Best regards,  
~ Florian

---

<div class="post-metadata">

**Author:** ![hunger01](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/e480ec/32.png) [@hunger01](https://community.mp3tag.de/u/hunger01)\
**Post date:** [March 25, 2005, 4:36pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/24 "2005-03-25T16:36:40Z")

</div>

hi weakling child,

the 6th release is "Chanel N° 303" isnt it? perhaps its not shown because of the **°**? probably the same unicode issue, dont u think so?

best regards  
yo.

edit:  
oh lucky! florian is going to fix it! thanks! 🙂

---

<div class="post-metadata">

**Author:** ![A\_Weakling\_Child](https://community.mp3tag.de/user_avatar/community.mp3tag.de/a_weakling_child/32/62_2.png) [@A\_Weakling\_Child](https://community.mp3tag.de/u/A_Weakling_Child)\
**Post date:** [March 25, 2005, 5:58pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/25 "2005-03-25T17:58:36Z")

</div>

> [@](#):
>
> It has nothing to do with Unicode and I'll try to fix it when I find some spare time.

awesome, thank you!

> [@](#):
>
> the 6th release is "Chanel N° 303" isnt it? perhaps its not shown because of the °? probably the same unicode issue, dont u think so?

yep, missed that.

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [March 25, 2005, 6:01pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/26 "2005-03-25T18:01:56Z")

</div>

A Weakling Child,

all your problems (including cover art through proxy) should be fixed with the current [Development Build](http://developer.mp3tag.de).

Best regards,  
~ Florian

---

<div class="post-metadata">

**Author:** ![dupuy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/f9ae1b/32.png) [@dupuy](https://community.mp3tag.de/u/dupuy)\
**Post date:** [March 25, 2005, 9:53pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/27 "2005-03-25T21:53:37Z")

</div>

> [@](#):
>
> Calculating the TRM identifier requires internal decoding to WAV, so a decoder for every file format supported would be necessary. This is currently a little bit too much work.
> 
> \<{POST\_SNAPBACK}\>

The MusicBrainz client libraries support TRM lookup, but it's also possible to use them to perform [lookups by artist/album/track name](http://www.musicbrainz.org/docs/mb_client/2.1.0/queries_h.html#a75) as well.

Even if you don't use the client libraries, you should consider using the Web Services (RDF) API, as it is a committed interface, unlike the user presentation HTML. I don't think it would be that much more difficult to script using your Web Source Framework (although I don't use mp3tag and haven't looked at the framework).

@alex

---

<div class="post-metadata">

**Author:** ![hunger01](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/e480ec/32.png) [@hunger01](https://community.mp3tag.de/u/hunger01)\
**Post date:** [March 25, 2005, 10:35pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/28 "2005-03-25T22:35:23Z")

</div>

wow it works! thats just too great! thousand thanks!

---

<div class="post-metadata">

**Author:** ![hit\_ny](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ce73a5/32.png) [@hit\_ny](https://community.mp3tag.de/u/hit_ny)\
**Post date:** [April 1, 2005, 5:00pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/29 "2005-04-01T17:00:30Z")

</div>

Am using mp3tag2.29 and have a quesiton about the discogs.src

When i use it, it only seems to be able to query [discogs.com](http://discogs.com) by artist, i would like to search by album as well.

When i look in the discogs.src, album qury is defined but i am not able to access this using mp3tag.

Does anyone know how to query [discogs.com](http://discogs.com) with album name ?

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [April 1, 2005, 5:08pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/30 "2005-04-01T17:08:21Z")

</div>

> [@](#):
>
> Does anyone know how to query [discogs.com](http://discogs.com) with album name ?

This is not possible due to the site structure of [discogs.com](http://discogs.com)

Best regards,  
~ Florian

---

<div class="post-metadata">

**Author:** ![BenFish](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@BenFish](https://community.mp3tag.de/u/BenFish)\
**Post date:** [April 27, 2005, 5:32pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/31 "2005-04-27T17:32:45Z")

</div>

> [@](#):
>
> This is not possible due to the site structure of [discogs.com](http://discogs.com)
> 
> Best regards,  
> ~ Florian
> 
> \<{POST\_SNAPBACK}\>

Would anybody code a script for importig Various Artists Albums from [DISCOGS.COM](http://DISCOGS.COM) ?  
for Example: [http://www.discogs.com/release/241235](http://www.discogs.com/release/241235)  
Maybe that you simply have to enter the ID of the Album...

---

<div class="post-metadata">

**Author:** ![veryevilmike](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/a8b319/32.png) [@veryevilmike](https://community.mp3tag.de/u/veryevilmike)\
**Post date:** [May 19, 2005, 12:20pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/32 "2005-05-19T12:20:23Z")

</div>

Florian,

First up great program, I like everyone else here really appreciates all of your efforts with this. I've been playing around with the WebSource commands, particularly to the discogs interface (far and away the best for all my dance music).

I would like to capture the styles information as it is generally pretty good but its hard to do at the moment.

could I request an extra command for the framework, which i think would add a lot of functionality. The command would be

IfFindInLine S

and a matching  
ElseIfInLine S

would be even better. This would look in the current line past the current position for a character/string. However, it would not move to the found location. If the character is found in the current line a block of code will be evaluated. This would allow more complex behaviour to be done. For example: [http://www.discogs.com/release/293551](http://www.discogs.com/release/293551)

The first problem is that the current version of discogs.scr expects a track time to be specified, such as

A Dub Will Tear Us Apart (1:23)

The current code is

```
do
...
sayuntil " ("

```

but the example i've given looks like

A Dub Will Tear Us Apart

It doesn't do have a "(" to find so it falls over. The IfInLine could be used for this

```
 do
...
ifInLine " ("
sayuntil " ("
else
sayuntil "</td>"
endif

```

This way we would get the Track name correct in both cases.

The IfInLine would also allow the harvesting of the things in Styles:  
ie the html for the styles for the above example is:

```
<tr><td align=right>Genre:</td><td>
  Electronic,
  Rock
</td></tr>

```

and something along these lines could be done

```
#Styles - finds up to three styles, would need more nested loops to find more  
outputto "style"
findline "Style:"
moveline 1
iffindinline ","
   sayuntil ","
   moveline 1
   iffindinline ","
      sayuntil ","
      moveline 1
      sayrest
   endif
   sayrest
else
sayrest 
endif

```

The other problem I could see with this is would the subsequent sayrests overwrite the earlier ones, or would it just add it on the end? (the preferred behaviour)

On another note, the command Sayrest is mentioned earlier in the help, but not listed in the formal list of commands down the bottom of the help page. Its fairly powerful at the moment for single artist albums, but discogs (and i'm sure others) has a wealth of information that i'd love to get in my tags. This would also make getting various artist albums possible.

Thanks again for all the hardwork so far!

Mike

---

<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:** [May 19, 2005, 5:07pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/33 "2005-05-19T17:07:11Z")

</div>

Mike I think all this can be done already.  
ofc these commands could make some things easier  
#1 Keep in mind there's also titles like: Blabla (Special Edition) (3:28)  
Might be difficult.

#2  
Try this:

```
outputto "styles"
findline "Style:"
moveline 1
do
  findinline " "
  sayrest
  moveline 1
while " "
```

---

<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:** [May 23, 2005, 3:31pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/34 "2005-05-23T15:31:23Z")

</div>

I expanded the current discogs script, it now searches for albums, supports various artists, larger covers and better title recognition.  
[/t/1992/1](https://community.mp3tag.de/t/1992/1)

---

<div class="post-metadata">

**Author:** ![wism](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/ce73a5/32.png) [@wism](https://community.mp3tag.de/u/wism)\
**Post date:** [September 15, 2005, 4:40pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/35 "2005-09-15T16:40:04Z")

</div>

I'm trying to add some new tag info to the AllMusic web source; by now I successfully extracted the Album Rating and the Moods list, but I found some problems with the composer of the songs. ![:huh:](https://community.mp3tag.de/uploads/default/original/1X/f15ee73c0fd9ec3b0db7481f0558638f8ee224ce.gif ":huh:")

It's possible to assign a different value to every track in the list?  
The "tracks" values are separated with a pipe char ("|"), but using the same trick with the Composer (or every other field) I obtain a long concatenated string, with the same text for all the tracks, instead of a different value for every song.

Sorry for my poor English,  
Wism

P.S: I'm using the latest stable version, 2.32a

---

<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:** [September 15, 2005, 5:29pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/36 "2005-09-15T17:29:40Z")

</div>

It's not possible.

---

<div class="post-metadata">

**Author:** ![wism](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/ce73a5/32.png) [@wism](https://community.mp3tag.de/u/wism)\
**Post date:** [September 18, 2005, 7:51am UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/37 "2005-09-18T07:51:11Z")

</div>

> [@](#):
>
> It's not possible.
> 
> \<{POST\_SNAPBACK}\>

Really sad news... ☹

I think that this behaviour could be a very good candidate for a feature request: It would have to be quite simple to implement (the "tracks" buffer already works this way).

On the other hand it could permit to extract and assign song-level information, by processing album-level web pages.

What do you think about it?

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [October 3, 2005, 5:30pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/38 "2005-10-03T17:30:24Z")

</div>

> [@](#):
>
> I think that this behaviour could be a very good candidate for a feature request: It would have to be quite simple to implement (the "tracks" buffer already works this way).
> 
> On the other hand it could permit to extract and assign song-level information, by processing album-level web pages.
> 
> What do you think about it?

The current [Development Build](http://developer.mp3tag.de) supports multiple values also for non-title fields. The separator is the pipe symbol | and the only constraint is, that the number of values is equal to the number of tracks.

Best regards,  
~ Florian

---

<div class="post-metadata">

**Author:** ![freak72](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/f9ae1b/32.png) [@freak72](https://community.mp3tag.de/u/freak72)\
**Post date:** [April 12, 2008, 3:18pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/39 "2008-04-12T15:18:14Z")

</div>

hey,

i am a newbie with this app and therefore i'd like to ask a question:

i am trying to simply ad the covers to my mp3s using:

Cover [Art-Amazon.com](http://Art-Amazon.com) / .de / .co.uk / .fr  
Search by: Album  
Imports: Cover only  
Attached File Cover\_Art\_Amazon.zip ( 4.86k ) Number of downloads: 11225

[/t/1681/1](https://community.mp3tag.de/t/1681/1)

i followed the instructions and copied the extraced files into the suggested folder. however i can find this new option within the program. does anybody have an idea what i am doing wrong?

thanks in advance!

---

<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:** [April 12, 2008, 4:52pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/40 "2008-04-12T16:52:51Z")

</div>

And where exactly did you put it?

[Previous page](https://community.mp3tag.de/t/web-source-framework-discussion/1682.md?page=1)

[Next page](https://community.mp3tag.de/t/web-source-framework-discussion/1682.md?page=3)
