Version 2.6.0-20250315
- TOTALTRACKS is enabled again and should display the correct number of tracks across all discs
VGMdb_by_URL.src (128.8 KB)
Shout-out to @yorickausyps for his "counting tracks" example detailed here.
Version 2.6.0-20250315
VGMdb_by_URL.src (128.8 KB)
Shout-out to @yorickausyps for his "counting tracks" example detailed here.
2.6.2-20250323
2.6.1-20250316
VGMdb_by_URL.src (129.4 KB)
Hi there, thank you very much for the script, very useful. I've used it successfully to change the Titles and Album fields from English to Japanese.
I am now trying to set the Track field to display the number of the track out of the total number of tracks in a disc, for example, instead of displaying 01, 02, 03, etc., I want the field to display 01/08, 02/08, 03/08, etc (always making sure that if the value is single digit, it is preceded by a "0"). Likewise, I also wish to do something similar for the Discnumber field, change from 1, 2, 3, to 1/3, 2/3, 3/3.
So far, I've tried changing the mapping section from lines 3763 to 3774 to:
OutputTo "TRACK"
IfOutput "VGMDB_TRACK_NUMBER_ROM"
SayOutput "VGMDB_TRACK_NUMBER_ROM""/""VGMDB_TOTALTRACKS"
Else
IfOutput "VGMDB_TRACK_NUMBER_ENG"
SayOutput "VGMDB_TRACK_NUMBER_ENG"
Else
IfOutput "VGMDB_TRACK_NUMBER_JAP"
SayOutput "VGMDB_TRACK_NUMBER_JAP"
EndIf
EndIf
EndIf
and
OutputTo "TRACK"
IfOutput "VGMDB_TRACK_NUMBER_ROM"
SayOutput "VGMDB_TRACK_NUMBER_ROM/VGMDB_TOTALTRACKS"
Else
IfOutput "VGMDB_TRACK_NUMBER_ENG"
SayOutput "VGMDB_TRACK_NUMBER_ENG"
Else
IfOutput "VGMDB_TRACK_NUMBER_JAP"
SayOutput "VGMDB_TRACK_NUMBER_JAP"
EndIf
EndIf
EndIf
However, with these changes I'm not getting the desired results. Would the solution require using regular expressions? Or am I completely lost? Please excuse me if this is a silly thing to be asking, it's my first time using scrpits for mp3tag.
What would be the expected result in TRACK?
The content of VGMDB_TRACK_NUMBER_ROM followed by a slash and followed by the content of VGMDB_TOTALTRACKS?
What kind of music files to you use? mp3? FLAC? Some other format?
What would be the expected result in TRACK?
Yes, it would be, as you mentioned, the content of VGMDB_TRACK_NUMBER_ROM followed by a slash and followed by the content of VGMDB_TOTALTRACKS, for the Track field. That, as well as the content of VGMDB_DISC_NUMBER followed by a slash and followed by the content of GMDB_TOTALDISCS for the Discnumber field.
What kind of music files to you use? mp3? FLAC? Some other format?
I am using mostly mp3 files, with the occasional FLAC, m4a and WAV files.
I don't know this script exactly.
In my own (non VGMdb) script I use these lines to separate the tracknumber from a total track counter with a slash:
...
outputto "TRACK"
sayrest
...
ifOutput "MB_Media_TrackCount"
say "/"
sayoutput "MB_Media_TrackCount"
endif
Thank you, I've tried several ways of adapting the script similar to what you mentioned, but I am still getting the same results. I'll keep playing around with it, I'm probably messing up somewhere.
The script currently does not retrieve the total number of tracks for each disc. TOTALTRACKS instead counts all tracks across all discs. Let's take an album with 3 discs each containing 12 tracks. Track 3 of disc 2 in this album would have the following metadata:
It will not however give you the information that disc 2 has 12 tracks total, so I don't think you can create the numbering you want.
If I overhaul the track section of the script in the future I may add the track total for each disc as an additional field but no promises there. VGMdb should get an API this year so it should be far easier to create a robust tagging source script using that at later date.
I see, thanks for clarifying. The auto-numbering wizard function has been useful for a lot of releases, but there are some cases where, for silly reasons on my end, such a feature could help. Regardless, thank you very much for the script!
Just got the script, thanks, is there a way to make it write the track titles in english not Romaji?
You can change line 3780 and following lines from
OutputTo "TRACKS"
IfOutput "VGMDB_TRACK_TITLE_ROM"
SayOutput "VGMDB_TRACK_TITLE_ROM"
Else
IfOutput "VGMDB_TRACK_TITLE_ENG"
SayOutput "VGMDB_TRACK_TITLE_ENG"
Else
IfOutput "VGMDB_TRACK_TITLE_JAP"
SayOutput "VGMDB_TRACK_TITLE_JAP"
EndIf
EndIf
EndIf
To
OutputTo "TRACKS"
IfOutput "VGMDB_TRACK_TITLE_ENG"
SayOutput "VGMDB_TRACK_TITLE_ENG"
Else
IfOutput "VGMDB_TRACK_TITLE_ROM"
SayOutput "VGMDB_TRACK_TITLE_ROM"
Else
IfOutput "VGMDB_TRACK_TITLE_JAP"
SayOutput "VGMDB_TRACK_TITLE_JAP"
EndIf
EndIf
EndIf
this solution doesnāt work when I try it.
You mean changing the default track title language? If you have trouble editing the script you could also use the build-in Tag-to-Tag-Converter tool (Menu Convert ā> Tag - Tag):
Field: TITLE
Format string: %VGMDB_TRACK_TITLE_ENG%
Commenting so that anyone following this doesnāt also have to spend an afternoon troubleshooting this. Even if Mp3tag is installed in Programs folder, it will be copied to Roaming which is then set as the primary folder. Any updates to the sources folder in Program Folders will be ignored, making it appear that any changes to those files are not working.
Once you have set your preferences by editing the VGMdb_by_URL.src file, it needs to be copied to C:\Users\[USERNAME]\AppData\Roaming\Mp3tag\data\sources
The easiest way to get the correct configuration folder would still be to use
File>Open configuration folder
This opens the explorer in the correct folder for the standard installation and also for the portable installation.
It looks like vgmdb has implemented anti-bot measures, and this is no longer working. I have another app impacted by this, so Iāll also be looking for a work-around.
edit: thanks to illidanz in discord, it works again
Came here to report that same issue, hope it can get resolved.
Iām (luckily) not affected by this and I donāt know if Mp3tag can circumvent these anti-bot measures⦠Maybe you could somehow use the cloudflare cookie, but thatās probably way over my head.
Best bet is probably waiting for the API they announced last summer, but so far I havenāt heard any news on that.
Everyone should be fine. I talked to one of the vgmdb devs, and mp3tag is fine because (presumably?) it uses your cookies from your browser in this instance. In any case no need to fret, it was patched up quickly. Thanks as always for your help GiFuJo!
Seems like script has a bit of a problem when it runs into an album without a defined āBARCODEā entry in VGMdb, like
https://vgmdb.net/album/1590 or https://vgmdb.net/album/5321
It just spits out an error in the tag information window, and then stops running down the script so stuff like track lists never get populated. Iād assume this should be easy enough to fix by telling the script to ignore the field if it canāt find it? I donāt know anything about scripting, but Iāll poke around.