[WS] vgmdb

Works particially, here an example:

VGMdb#Search by &Album.src (5.4 KB)

Seems to be working fine for the majority of the stuff I threw at it, thank you.

There is one bug that needs fixing if possible. The catalog number scraping is picking up some junk due to poor placement of a link to show extra album credits in one the updates.

mp3tag
extra

Its an easy fix, we just have to remove this, i think:

<a id="extralink" href="#" style="float:right">[Extra Credits]</a>
 <script type="text/javascript">
 $(document).ready(function() {
 $("#extralink").click(function(e) {
 $("tr.maincred").toggle();
 $("tr.extracred").toggle();
 $(this).text($("tr.maincred").is(":visible") ? "[Extra Credits]" : "[Main Credits]");
 e.preventDefault();
  });
  });
 </script>

But i cannot do it now, i will do it when this week ends.

Edit: or as a quick fix, you can add this line:

replace "[Extra Credits]<script type=\"text/javascript\">$(document).ready(function() {  $(\"#extralink  \").click(function(e) {    $(\"tr.maincred\").toggle();    $(\"tr.extracred\").toggle();    $(this).text($(\"tr.maincred\").is(\":visible\") ? \"[Extra Credits]\" : \"[Main Credits]\");    e.preventDefault();  });});</script>" ""

below

else
	regexpreplace "<a[^>]+>" ""
	replace "</a>" ""

at line 117
see here: Github

imagem

Romano - many thanks for your work updating this script for VGMdb - has the same update been made to the Search by URL version?

If not, could I please request this?

@M_Mirza try this
VGMdb#U&RL.src (4.9 KB)

1 Like

That's perfect Romano, thank you once again

Just for information - there's been another update just today (https://vgmdb.net/forums/showthread.php?p=95419#post95419) that has once more rendered the script unusable.

This VGMdb Administrator/coder works hard.

@M_Mirza
Try this and let me know if there are any bugs.
Later i will make this source to get more data.

VGMdb#U&RL.src (4.9 KB)
VGMdb#Search by &Album.src (5.6 KB)

you can always find any changes in my repository.

edit: there is a bug, if there is songs in other language Japanese per example, it adds to the tracks. right now i cannot solve it, as i am new to scripting, but i will try.

2 Likes

They updated again the tracks:
VGMdb#Search by &Album.src (5.8 KB)
VGMdb#U&RL.src (5.0 KB)

bug: gets english and japanese tracks. If anyone can help

1 Like

Great work. Much appreciated.

Does the Bug about japanese & english getting mixed still exist?

Could you make a version or post the changes to get the year as standard iso?
I would like to have year be: 2020.12.30 instead of just 2020, as I use it to rename the folders right away.

Its not a major bug, as the tracks are sequencial, just erase it or save.

Here it is the new date version:
VGMdb#Search by &Album.src (5.8 KB)

1 Like

@Romano Thank you a lot, you probably saved me a lot of hours, if you sent me your paypal I'll buy you a coffee

Updated and improved
VGMdb#Search by &Album.src (5.9 KB)
VGMdb#U&RL.src (4.9 KB)

1 Like

Same token of appreciation as above for me, @Romano. Please do not feel ashamed to send me your PayPal, as I'd also very happily contribute a tip for your efforts.

No friend, i do it for the community, let me know if there is any changes.

2 Likes

Fix for Notes error
Fix for Media type in Index serch
Add: Set Artist = Albumartist
VGMdb#Search by &Album.src (6.0 KB)

Fix for Notes error
Add: Set Artist = Albumartist
VGMdb#U&RL.src (5.0 KB)

Hello.
Are there instructions on how to activate this file in the program ? I unzipped the files in Mp3tag \ data \ sources, but the base did not appear in the program.

  • Drop the VGMdb#Search by &Album.src file in your appdata\roaming\mp3tag\data\sources folder.
  • Select all tracks Ctrl-a
  • Click the Web Sources drop down button, select vgmdb > Search by Album

@Romano I'd like to propose a change to the script to make your life easier and potentially reduce errors.
The MP3tag Web Sources Framework syntax supports an [Include] key. This allows you to import source script code into others, reducing code duplication as well as being less prone to errors. I added this key to VGMdb#U&RL.src and VGMdb#Search by &Album.src, pointing to a new file, VGMdbAlbumParser.inc. This way, when maintenance is needed on the album parser in the future, you only need to change that one file.
I can't upload the files individually here because the format filter screens out .inc files, even though that's the same format the default Discogs.inc script uses. Regardless, here is a zip archive of them and I hope this does make things easier for you going forward:
VGMdbSources.zip (3.1 KB)

1 Like