[WS] VGMdb (extended)

Hi guys,

I have written a Web Source Script for VGMdb. VGMdb focuses on video game music, but in my experience is also the best source for anime related music.

The script started as a fork of Romano's great script found over in this topic, but with a focus on multi-language support and additional fields. As the discussion in the other topic is focused on Romano's VGMdb script, it seemed more appropriate to create a new topic.

Disclosure: I had and still have pretty much no idea what I'm doing, and the script is probably an unnecessarily convoluted mess, so I'd be very grateful for any tips and feedback. I've tested the script with a few hundred of my own tracks and found no errors, but since I don't know the exact structure of VGMdb's records, I suspect there could be a lot of bugs, especially since I don't have any mixed media, very old or unusual albums to test the script with. Also this script was written and tested on linux running Mp3tag through wine... but I don't see why it shouldn't work on Windows.

Ignore the squares in the screenshot... I was too lazy to configure the wine prefix correctly.

The idea behind this script is to offer a lot of information from VGMdb and let the user map this information to the common tag fields available in Mp3tag. You can use it by entering the full VGMdb album url. The script currently supports the following fields:

  • VGMDB_ALBUM_TITLE_JA
  • VGMDB_ALBUM_TITLE_JA_LATN
  • VGMDB_ALBUM_TITLE_EN
  • VGMDB_CATALOG_NUMBER
  • VGMDB_BARCODE
  • VGMDB_RELEASE_DATE
  • VGMDB_RELEASE_DATE_YEAR
  • VGMDB_MEDIA_FORMAT
  • VGMDB_CLASSIFICATION
  • VGMDB_LABEL
  • VGMDB_MANUFACTURER
  • VGMDB_DISTRIBUTOR
  • VGMDB_PUBLISHER
  • VGMDB_PHONOGRAPHIC_COPYRIGHT
  • VGMDB_CATEGORY
  • VGMDB_PRODUCTS_REPRESENTED
  • VGMDB_NOTES
  • VGMDB_URL
  • VGMDB_MAIN_CREDITS_COMPOSER
  • VGMDB_MAIN_CREDITS_WRITER
  • VGMDB_MAIN_CREDITS_ARRANGER
  • VGMDB_MAIN_CREDITS_PERFORMER
  • VGMDB_MAIN_CREDITS_VOCALS
  • VGMDB_MAIN_CREDITS_LYRICIST
  • VGMDB_MAIN_CREDITS_PROGRAMMER
  • VGMDB_MAIN_CREDITS_CONDUCTOR
  • VGMDB_MAIN_CREDITS_SOUND
  • VGMDB_MAIN_CREDITS_PRODUCER
  • VGMDB_ALL_CREDITS
  • VGMDB_DISC_TITLE
  • VGMDB_DISC_CLASSIFICATION
  • VGMDB_DISC_NUMBER
  • VGMDB_TRACK_NUMBER_ENG
  • VGMDB_TRACK_NUMBER_ROM
  • VGMDB_TRACK_NUMBER_JAP
  • VGMDB_TRACK_TITLE_ENG
  • VGMDB_TRACK_TITLE_ROM
  • VGMDB_TRACK_TITLE_JAP
  • VGMDB_TRACK_DURATION_ENG
  • VGMDB_TRACK_DURATION_ROM
  • VGMDB_TRACK_DURATION_JAP

...as well as the full size cover art.

I have provided a default mapping starting from line 1832, but feel free to adapt this to your personal needs. The default mapping favours Romaji over English over Japanese.

Limitations: This script only scrapes the first five available tracklists and discs. This means that it will not work with albums with more than five discs and will miss English, Japanese and Romaji tracklists if they are not in the first five playlists. This is not really a technical limitation and could be extended in the future. For now, I have implemented these limits for the sake of testing and maintainability.

Best regards
GiFuJo

VGMdb_by_URL.src (68.5 KB)

Changelog:
Version 1.0.1-20230127: Fixed wrong delimiter in "VGMDB_ALL_CREDITS"
Version 1.0.0-20230127: Initial release

3 Likes

Seems like you can only edit your posts for a few days (or I'm missing something)...

So here is a new version:

Version 1.0.2-20230130: Changed default mapping for "GENRE" to favour "VGMDB_DISC_CLASSIFICATION" over "VGMDB_CLASSIFICATION"

VGMdb_by_URL.src (69.3 KB)

Version 1.0.3-20230201: Fixed indented credits in "VGMDB_ALL_CREDITS"
Version 1.0.4-20230201: Fixed pipe characters ("|") in album titles
Version 1.1.0-20230202: Replaced "VGMDB_PRODUCTS_REPRESENTED" with "VGMDB_PRODUCTS_REPRESENTED_EN", "VGMDB_PRODUCTS_REPRESENTED_JA" and "VGMDB_PRODUCTS_REPRESENTED_JA_LATN"

Mapping now begins in line 1875.

VGMdb_by_URL.src (70.7 KB)

Version 1.1.1-20230204:

  • Fixed annotations in "VGMDB_MEDIA_FORMAT" (e. g. "Cactus Data Shield")
  • Fixed error on missing Barcode
  • Fixed "VGMDB_PRODUCTS_REPRESENTED_*" not being picked up when product is the same for all languages and has no special entry

Version 1.1.2-20230205:

  • Fixed regressions with VGMDB_PRODUCTS_REPRESENTED_*" and "VGMDB_BARCODE"
  • Fixed handling of child menus in "VGMDB_CATALOG_NUMBER"

VGMdb_by_URL.src (71.4 KB)

1 Like

Version 1.1.3-20230212:

  • Fixed handling of multiple "VGMDB_PRODUCTS_REPRESENTED_*"
  • Mapping now begins at line 1924

VGMdb_by_URL.src (72.5 KB)

After tagging around 2,000 albums I haven't found any issues with the script, so I took the opportunity to clean the script up a bit:

Version 2.0.0-20230309

  • Maintenance and code cleanup

VGMdb_by_URL.src (72.5 KB)

Mapping now begins at line 1923.

1 Like

Is there any way to tag Japanese tracklists?

How to match the cue_track_artist to the artist column, so that the artist column would too long


By default the script reads JAP, ROM and ENG tracklists. Japanese track titles are written to the custom field "VGMDB_TRACK_TITLE_JAP" and can be mapped to any field you like. To change the default track language to Japanese just change lines 1985 till 1996 in the script to:

OutputTo "TRACKS"
IfOutput "VGMDB_TRACK_TITLE_JAP"
  SayOutput "VGMDB_TRACK_TITLE_JAP"
Else
  IfOutput "VGMDB_TRACK_TITLE_ROM"
    SayOutput "VGMDB_TRACK_TITLE_ROM"
  Else
    IfOutput "VGMDB_TRACK_TITLE_ENG"
      SayOutput "VGMDB_TRACK_TITLE_ENG"
    EndIf
  EndIf
EndIf
1 Like

VGMdb has no track specific credits. I suspect that your "CUE_TRACK0#_ARTIST" fields are from another tagging source. The way they are presented in the screenshot, I can't think of any automation method inside Mp3tag. So you are probably stuck manually overwriting the ARITST tag with your cue tags.