[WS] vgmdb

@elecgnosis thank you friend, that is very useful.
Also take note that was not the latest version of the src as they are constantly changing the html. For this i will try making a json web source, as they have a json http://vgmdb.info/.

sources.rar (2.6 KB)

Edit: the first beta for JSON. This will make corrections when html changes a lot less, i hope.
VGMdb#Search by &Album JSON.src (3.2 KB)

1 Like

I am full noob, there is a way to make the source code put the Japanese informations of the VMGDB?

Yes there is, but the script must be changed, will do it when i have the time.

1 Like

Thanks a lot :star_struck:

Hey, vgmdb did it again! :frowning: Any chance of update the sources?

Many thanks!

Looking at the page source, whichever intern is reworking their layout is obviously drunk.

Try this please:
VGMdbAlbumParser.rar (1.5 KB)

also you can try the JSON source (above download), it as few changes when html change (with this html change the artist will not appear but soon will be fixed)

Oh, I didn't know that they had another site (vgmdb.info) that can output the page in json format. That makes things easier for my personal vgmdb websource except some info (e.g. performers) is missing in the vgmdb.info page:

vs.

https://vgmdb.info/album/33693?format=json

With the json parser besides from the artist the track names also don't appear, track length only.

Try this now:
VGMdbAlbumParser.zip (1.6 KB)

Let me now what album it gives error, it helps.

Yes the JSON version lacks the artist(performer), as when they change the html, the author of the JSON and XML, also have to change the scheme(it is a thing apart the VGMDB.NET, it is VGMDB.INFO), and the source it is based in his work, so we have to wait as i don't now Python.

JSON source: For Japanese name tracks just change the line 177 json_select "English" to json_select "Japanese", in the tracks part.

1 Like

I thinks no track names result in japanese only like

https://vgmdb.net/album/32658 or
https://vgmdb.net/album/104778

Before it took the next valid language if there was no english.

Btw., many thanks for all your work! :slight_smile:

@retaliator For Japanese name tracks just change the line 177 json_select "English" to json_select "Japanese", in the tracks part.
Until i think a way better.

Ok, thanks for the hint!

Maybe another "bug": only the correct track names of the first disc are written, disc 2 and 3 are trash only:

Running into a little problem with this latest version (not the JSON version) where it keeps pulling the Composer name (and therefore the 'artist' and 'album artist' since they're copied from that field) in kanji (lang="ja") instead of English (lang="en"); everything else seems to pull correctly, though.

I've been messing around with the code to see if I could figure it out, but unfortunately my regex knowledge is bollocks and I can't seem to make any headway.

Edit: managed to figure it out, looks like the syntax was just a little off. tested with a few pages and it seems to work. Attaching the fixed file below, hope that's okay with the dev?

VGMdbAlbumParser-engnames.zip (1.6 KB)

Edit2: Upon some further testing, I'm still getting the occasional "</span>" stuck in the composer field. =( It seems to be pretty rare, but can't seem to find an easy way around it after some poking. Use the attached file at your own risk, and keep an eye out for random bits of code that might show up.

Example of this bug: https://vgmdb.net/album/5659

1 Like

Every improvement is welcomed.

1 Like

Can't edit original post further. T_T

Another example site of the same bug with a random "</span>" getting pulled to the composer field. It looks like it specifically happens when the Composer field on the site has multiple artists in parenthesis, like "Hyd Lunch (Yasuyuki Matsuzaki, Hiroaki Watanabe)" or "Namco Tales Studio Ltd. (Motoi Sakuraba, Shinji Tamura)" in those two examples.

I guess because of the parenthesis there's an extra closing tag in the line that doesn't get purged, so it gets grabbed?

Hello! First of all, thanks for your work.

The script VGMdb#Search by &Album JSON.src is the only one that works for me, as all the others from the thread have been giving me blank track lists. However even with this one, it seems to break for the tracks on the second CD, like so: https://i.imgur.com/1qFVS1q.png
Any ideas on how to fix this?
The album I'm trying to process is https://vgmdb.net/album/1256

Try it now VGMdb#Search by &Album JSON.src (4.4 KB)

if the tracks appear blank, it is a Japanese names of tracks? if so just change the line 177 json_select "English" to json_select "Japanese", in the tracks part.

How do I add a new tag field for the Event name? For example:

The line is this, but I don't know how to parse it properly to just grab "M3-46" or "M3-2020 Fall"

<td><a title="View albums released on Oct 26, 2020" href="/db/calendar.php?year=2020&month=10#20201026">Oct 26, 2020</a><a class='link_event' rel='nofollow' title='M3-2020 Fall' href='/event/258'><span class='label'>M3-46</span></a> </td></tr>

I managed to get this working by placing this just after VGMD URL (though it slows the script down a bit). It seems to break depending on where it's inserted if there isn't an event listed (gives an and stops all scripts following it)..

# Event Name
outputto "Event"
findline "<a class="
joinuntil "</span>"
findinline "title='"
sayuntil "' href="

Anyway, I request adding the following to the script to match the more detailed info VGMDB has:

Arranger
Performer
Event if applicable

Added event, try this: VGMdb#Search by &Album JSON.src (4.4 KB)
the arranger are in conductor tag.
The performer is the artist tag, if there is not performer then the composer goes to the artist tag.