Web Source Framework Discussion


#33

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 "  "

#34

I expanded the current discogs script, it now searches for albums, supports various artists, larger covers and better title recognition.
/t/1992/1


#35

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:

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


#36

It's not possible.


#37

Really sad news... :frowning:

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?


#38

The current Development Build 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


#39

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 / .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

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!


#40

And where exactly did you put it?


#41

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 :slight_smile:


#42

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, 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


#43

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!


#44

You can find the updated file here:
/t/1681/1


#45

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


#46

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.


[WS] Discogs (pone mod)
#47

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.


#48

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.


#49

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.


#50

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.

Thanks, Martin.


#51

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


#52

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