# 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:** 12\
**Page:** 3

<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, 6:46pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/41 "2008-04-12T18:46:35Z")

</div>

i put in the mp3tag\data\sources folder along with all the other \*.src files that already existed in there.

EDIT:

never mind, i got it. thanks anyway 🙂

---

<div class="post-metadata">

**Author:** ![Cobbydaler](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/6bbea6/32.png) [@Cobbydaler](https://community.mp3tag.de/u/Cobbydaler)\
**Post date:** [April 4, 2009, 3:39pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/42 "2009-04-04T15:39:48Z")

</div>

> [@freak72](#):
>
> 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!

I too have this problem using version 2.43. Extracted the Amazon.zip & MusicBrain.zip files to the /data/sources directory but the only items appearing in the Tag Sources menu are the original [Amazon.com](http://Amazon.com), [Amazon.de](http://Amazon.de) & discogs entries.

How do I get the new ones to appear?

**Update**

Found it!

In Vista the files go in \users\username\appdata\roaming\mp3tag\data\sources

---

<div class="post-metadata">

**Author:** ![silmlent13](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/cdc98d/32.png) [@silmlent13](https://community.mp3tag.de/u/silmlent13)\
**Post date:** [February 4, 2011, 8:40pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/43 "2011-02-04T20:40:52Z")

</div>

Hi everyone,

It seems that Amazon.co.jp web source is no longer grabbing cover art or tracklists from the website. I'm afraid that I don't have the competency to solve the problem myself, but I was hoping that someone might be able to help resolve this problem?

Thanks a lot!

---

<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:** [February 4, 2011, 8:44pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/44 "2011-02-04T20:44:42Z")

</div>

You can find the updated file here:  
[/t/1681/1](https://community.mp3tag.de/t/1681/1)

---

<div class="post-metadata">

**Author:** ![silmlent13](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/cdc98d/32.png) [@silmlent13](https://community.mp3tag.de/u/silmlent13)\
**Post date:** [February 5, 2011, 3:31am UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/45 "2011-02-05T03:31:25Z")

</div>

Thank you very much for your help! The new version works perfectly!

---

<div class="post-metadata">

**Author:** ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)\
**Post date:** [April 3, 2011, 10:01am UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/46 "2011-04-03T10:01:02Z")

</div>

I was wondering if a .src command block can be reused in other .src (similar to INCLUDE command in some programming languages).  
This way a tag related command block could be saved in a file which can be included in several .src files.

---

<div class="post-metadata">

**Author:** ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)\
**Post date:** [April 5, 2011, 10:18pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/47 "2011-04-05T22:18:25Z")

</div>

> [@\[WS\] Discogs (pone mod)](https://community.mp3tag.de/t/ws-discogs-pone-mod/9226/59):
>
> Wouldn't it be better if each tag related command block is saved in a separate file so it can be reusable in script (.src) source files? [Web Source Framework Discussion](https://community.mp3tag.de/t/1682/46) A nice-to-have option.  
> Thus you change centrally a tag related source code.  
> And each script file could be easier managed.

I'm answering you here since I think your question at the discogs script topic is not releated specially to this script, right?

What you propose there is not possible with mp3tag. You can't combine .src files like you can combine actions to action groups. You would have to run every script for every tag for it's own, so you would run about 15 scripts for one album!

> [@Victor Kostas](#):
>
> I was wondering if a .src command block can be reused in other .src (similar to INCLUDE command in some programming languages).  
> This way a tag related command block could be saved in a file which can be included in several .src files.

But you can reuse command blocks in other scripts. Just copy them and insert them into your own script.  
The only tricky thing is that the new script finds the right place in the web source where the comand block is belonging.

---

<div class="post-metadata">

**Author:** ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)\
**Post date:** [April 6, 2011, 5:57pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/48 "2011-04-06T17:57:25Z")

</div>

> [@pone](#):
>
> I'm answering you here since I think your question at the discogs script topic is not releated specially to this script, right?
> 
> What you propose there is not possible with mp3tag. You can't combine .src files like you can combine actions to action groups. You would have to run every script for every tag for it's own, so you would run about 15 scripts for one album!
> 
> But you can reuse command blocks in other scripts. Just copy them and insert them into your own script.  
> The only tricky thing is that the new script finds the right place in the web source where the comand block is belonging.

I think you didn't get my point.  
I never wrote to combine .src files.  
What I mean is to not write the same group of commands in each .src file but put this in a separate file (obviously not .src).  
e.g. following block commands "extracts" Album.

```
# Album
outputto "Album"
findline "class=\"profile"
findline "href=\"/artist"
regexpreplace "^.+</a>" "</a>"
findinline "</a>"
findinline " - "
sayuntil "</h1>"

```

Instead of inserting the very same code to each .src file you save the block to a file (e.g. album.sri). You include the file (include album.sri) on each .src file.  
A change to album.sri file would affect all .src files using it.  
This way you manage centrally your code. A simple change on how you extract a particular tag wouldn't require a change of all .src files.  
So the question now is: _Would it be feasible to add a new command **INCLUDE .sri** _ ?  
I hope it it is clear now.

---

<div class="post-metadata">

**Author:** ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)\
**Post date:** [April 6, 2011, 7:17pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/49 "2011-04-06T19:17:20Z")

</div>

> [@Victor Kostas](#):
>
> I think you didn't get my point.

Yeah, I get your point and that's a good idea.  
I don't know if this could be realized. You can make a feature suggestion to florian.

---

<div class="post-metadata">

**Author:** ![martinlooker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@martinlooker](https://community.mp3tag.de/u/martinlooker)\
**Post date:** [October 13, 2011, 2:18pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/50 "2011-10-13T14:18:06Z")

</div>

Hello,

I have a request, would it be possible to add search by ASIN for the various Amazon web sources ?

I mainly use [amazon.co.uk](http://amazon.co.uk).

Thanks, Martin.

---

<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:** [October 13, 2011, 5:27pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/51 "2011-10-13T17:27:14Z")

</div>

Just enter the ASIN in the search field, it should find the album.

---

<div class="post-metadata">

**Author:** ![martinlooker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@martinlooker](https://community.mp3tag.de/u/martinlooker)\
**Post date:** [October 13, 2011, 7:02pm UTC](https://community.mp3tag.de/t/web-source-framework-discussion/1682/52 "2011-10-13T19:02:28Z")

</div>

Ok will try that I was actually trying to match to an MP3 download on there and I've found the script that handles those (I have a different problem with not finding the Artist on there though the script seems to be looking in the right place and the US lokup is working - but I will post in the thread for that script)

Thanks, Martin

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