# \[WS\] vgmdb

**URL:** https://community.mp3tag.de/t/ws-vgmdb/9731
**Category:** Web Sources Scripts
**Created:** [January 19, 2010, 12:25pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731 "2010-01-19T12:25:18Z")
**Posts on this page:** 20
**Page:** 6

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [August 13, 2020, 5:29pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/105 "2020-08-13T17:29:18Z")

</div>

@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/](http://vgmdb.info/).

[sources.rar](https://community.mp3tag.de/uploads/short-url/526Q1sSLVX20ZftLBIOyxlXTQew.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](https://community.mp3tag.de/uploads/short-url/7kRRPvr7EIHO7SaN1M0wv60NQ5A.src) (3.2 KB)

---

<div class="post-metadata">

### Author: ![olucaslab](https://community.mp3tag.de/user_avatar/community.mp3tag.de/olucaslab/32/8077_2.png) [@olucaslab](https://community.mp3tag.de/u/olucaslab)
#### Post date: [September 20, 2020, 4:11am UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/106 "2020-09-20T04:11:15Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [September 20, 2020, 8:21am UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/107 "2020-09-20T08:21:33Z")

</div>

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

---

<div class="post-metadata">

### Author: ![olucaslab](https://community.mp3tag.de/user_avatar/community.mp3tag.de/olucaslab/32/8077_2.png) [@olucaslab](https://community.mp3tag.de/u/olucaslab)
#### Post date: [September 23, 2020, 7:04pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/108 "2020-09-23T19:04:46Z")

</div>

Thanks a lot 🤩

---

<div class="post-metadata">

### Author: ![retaliator](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@retaliator](https://community.mp3tag.de/u/retaliator)
#### Post date: [October 9, 2020, 4:53am UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/109 "2020-10-09T04:53:26Z")

</div>

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

Many thanks!

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [October 10, 2020, 1:29am UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/110 "2020-10-10T01:29:41Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [October 10, 2020, 9:33am UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/111 "2020-10-10T09:33:22Z")

</div>

Try this please:  
[VGMdbAlbumParser.rar](https://community.mp3tag.de/uploads/short-url/97nz9ayaFXcf7XwZEZ0VTnSu2UD.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)

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [October 11, 2020, 1:05am UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/112 "2020-10-11T01:05:30Z")

</div>

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:

> **[NCRS-0008~10 | TIME TRAVELERS Original Soundtrack - VGMdb](https://vgmdb.net/album/33693)**
>
> Commercial (3 CD) published by noisycroak RECORDS, noisycroak on Aug 08, 2012 containing original soundtrack from TIME TRAVELERS with compositions by Hideki Sakamoto, Robert Schumann performed by yanaginagi, Rie Ojima, Satsy, Rumi Shishido, Haruko...

vs.

[https://vgmdb.info/album/33693?format=json](https://vgmdb.info/album/33693?format=json)

---

<div class="post-metadata">

### Author: ![retaliator](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@retaliator](https://community.mp3tag.de/u/retaliator)
#### Post date: [October 11, 2020, 5:52am UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/113 "2020-10-11T05:52:57Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [October 12, 2020, 5:00pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/114 "2020-10-12T17:00:48Z")

</div>

Try this now:  
[VGMdbAlbumParser.zip](https://community.mp3tag.de/uploads/short-url/3cQXMNqPMP4jrGi6DoLI3IXlX8j.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](http://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.

---

<div class="post-metadata">

### Author: ![retaliator](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@retaliator](https://community.mp3tag.de/u/retaliator)
#### Post date: [October 12, 2020, 5:40pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/115 "2020-10-12T17:40:52Z")

</div>

I thinks no track names result in japanese only like

[https://vgmdb.net/album/32658](https://vgmdb.net/album/32658) or  
[https://vgmdb.net/album/104778](https://vgmdb.net/album/104778)

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

Btw., many thanks for all your work! 🙂

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [October 12, 2020, 5:46pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/116 "2020-10-12T17:46:35Z")

</div>

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

 ![imagem](https://community.mp3tag.de/uploads/default/original/2X/d/d9388ac6d86587a9a5c6f267e383ebdedfd5ab8c.png)

---

<div class="post-metadata">

### Author: ![retaliator](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@retaliator](https://community.mp3tag.de/u/retaliator)
#### Post date: [October 12, 2020, 6:13pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/117 "2020-10-12T18:13:46Z")

</div>

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:

> **[CPCA-10293~5 | PROFESSOR LAYTON VS GYAKUTEN SAIBAN MAGICAL MYSTERY MUSIC - VGMdb](https://vgmdb.net/album/37511)**
>
> Commercial (3 CD) published by Suleputer on Apr 10, 2013 containing original soundtrack from Professor Layton vs. Phoenix Wright: Ace Attorney with compositions by Tomohito Nishiura, Yasumasa Kitagawa, Masakazu Sugimori performed by Layton Grand...

---

<div class="post-metadata">

### Author: ![secondsabre](https://community.mp3tag.de/user_avatar/community.mp3tag.de/secondsabre/32/8215_2.png) [@secondsabre](https://community.mp3tag.de/u/secondsabre)
#### Post date: [October 19, 2020, 7:55pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/118 "2020-10-19T19:55:02Z")

</div>

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](https://community.mp3tag.de/uploads/short-url/5Jz7NMzJuN64Gvt1pfMhOjWE0b6.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](https://vgmdb.net/album/5659)

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [October 20, 2020, 7:43am UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/119 "2020-10-20T07:43:41Z")

</div>

Every improvement is welcomed.

---

<div class="post-metadata">

### Author: ![secondsabre](https://community.mp3tag.de/user_avatar/community.mp3tag.de/secondsabre/32/8215_2.png) [@secondsabre](https://community.mp3tag.de/u/secondsabre)
#### Post date: [October 20, 2020, 9:58pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/120 "2020-10-20T21:58:43Z")

</div>

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?

> **[Ryu ga Gotoku Zero: Chikai no Basho Original Soundtrack... - VGMdb](https://vgmdb.net/album/51548)**
>
> Commercial (Digital) published by SEGA on Mar 11, 2015 containing original soundtrack from Yakuza 0 with compositions by Fumiyoshi Shimohara, POPHOLIC, Saori Yoshida, Yuri Fukuda, Hidenori Shoji, baker, Yuyoyuppe, Yuyoyuppa, SEGA, ZENTA, Kensuke...

---

<div class="post-metadata">

### Author: ![Zhnigo](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zhnigo/32/8233_2.png) [@Zhnigo](https://community.mp3tag.de/u/Zhnigo)
#### Post date: [October 25, 2020, 6:36pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/121 "2020-10-25T18:36:16Z")

</div>

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](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](https://vgmdb.net/album/1256)

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [October 26, 2020, 11:05am UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/122 "2020-10-26T11:05:04Z")

</div>

Try it now [VGMdb#Search by &Album JSON.src](https://community.mp3tag.de/uploads/short-url/bxtwTETdNanujiqp3XqxmEGyPMF.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.

---

<div class="post-metadata">

### Author: ![Habanero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/habanero/32/8241_2.png) [@Habanero](https://community.mp3tag.de/u/Habanero)
#### Post date: [October 26, 2020, 10:35pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/123 "2020-10-26T22:35:35Z")

</div>

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

> **[IROCD-003 | ARCAEA Sound Collection: MEMORIES OF REALMS - VGMdb](https://vgmdb.net/album/105250)**
>
> Commercial (CD) published by Lowiro Limited on Oct 26, 2020 containing original soundtrack from Arcaea with compositions by ginkiha, HiTECH NINJA, PSYQUI, Yunosuke, Zekk, WAiKURO, Sampling Masters MEGA, Aoi, siqlo, Noah, Kayuki, MIssionary, Street,...

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

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [October 27, 2020, 12:16pm UTC](https://community.mp3tag.de/t/ws-vgmdb/9731/124 "2020-10-27T12:16:38Z")

</div>

Added event, try this: [VGMdb#Search by &Album JSON.src](https://community.mp3tag.de/uploads/short-url/vEke7o6DkOycjhkBGWMHl9kj7O3.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.

[Previous page](https://community.mp3tag.de/t/ws-vgmdb/9731.md?page=5)

[Next page](https://community.mp3tag.de/t/ws-vgmdb/9731.md?page=7)
