Closed u2716 closed 2 years ago
well, basically, somebody created an api for vgmdb.net which can be accessed from vgmdb.info . This website is sometimes down hence the 502 bad gateway error.
Try again later and it may work.
But, the long term solution is to integrate the request directly to vgmdb.net . This is actually planned, but as I didn't see much use, I had other projects to work on.
I'll get back to it next weekend.
To answer your questions, yes it works with flac. Beets do the work of managing the files and it support flac.
thank you very much for the rapid response. have a good day :)
thanks it works fine now. but I get a few problems. first: in the filenames, " gets replaced with . the same happens for a point at the end of the filename, which gets replaced with . but it's not a big problem since the metadata are filled correctly and that's what I care the most.
second problem: i get errors with a few of my albums, both with manual vgmdb id and automatic.
manual vgmdb id:
VGMplug: Querying VgmDB for release 86128
Candidate: (None,) - KIMETSU NO YAIBA TV ANIMATION SERIES VOLUME 1 SPECIAL CD (vgmdb-86128)
Computing track assignment...
...done.
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/beet", line 8, in <module>
sys.exit(main())
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/ui/__init__.py", line 1285, in main
_raw_main(args)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/ui/__init__.py", line 1272, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/ui/commands.py", line 973, in import_func
import_files(lib, paths, query)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/ui/commands.py", line 943, in import_files
session.run()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/importer.py", line 340, in run
pl.run_parallel(QUEUE_SIZE)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/util/pipeline.py", line 446, in run_parallel
raise exc_info[1].with_traceback(exc_info[2])
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/util/pipeline.py", line 311, in run
out = self.coro.send(msg)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/util/pipeline.py", line 170, in coro
task = func(*(args + (task,)))
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/importer.py", line 1400, in user_query
task.choose_match(session)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/importer.py", line 859, in choose_match
choice = session.choose_match(self)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/ui/commands.py", line 743, in choose_match
post_choice = choice.callback(self, task)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beetsplug/VGMplug.py", line 49, in insert_manual_id
_add_candidate(task.items, candidates, self.album_for_id(search_id))
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/autotag/match.py", line 375, in _add_candidate
dist = distance(items, info, mapping)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/autotag/match.py", line 175, in distance
dist.add_string('artist', likelies['artist'], album_info.artist)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/autotag/hooks.py", line 539, in add_string
dist = string_dist(str1, str2)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/autotag/hooks.py", line 260, in string_dist
str2 = str2.lower()
AttributeError: 'tuple' object has no attribute 'lower'```
automatic:
VGMplug: Title satinize: KIMETSU NO YAIBA TV ANIMATION SERIES VOLUME TWO SPECIAL CD -> KIMETSU NO YAIBA TV ANIMATION SERIES VOLUME TWO SPECIAL CD
VGMplug: Title satinize: KIMETSU NO YAIBA TV ANIMATION SERIES VOLUME TWO SPECIAL CD -> KIMETSU NO YAIBA TV ANIMATION SERIES VOLUME TWO SPECIAL CD
VGMplug: Found 1 albums on VGMdb for query: KIMETSU NO YAIBA TV ANIMATION SERIES VOLUME TWO SPECIAL CD
VGMplug: Querying VgmDB for release 116834
Sending event: albuminfo_received
Candidate: (None,) - KIMETSU NO YAIBA TV ANIMATION SERIES ENTERTAINMENT DISTRICT ARC VOLUME TWO SPECIAL CD (vgmdb-116834)
Computing track assignment...
...done.
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/beet", line 8, in <module>
sys.exit(main())
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/ui/__init__.py", line 1285, in main
_raw_main(args)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/ui/__init__.py", line 1272, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/ui/commands.py", line 973, in import_func
import_files(lib, paths, query)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/ui/commands.py", line 943, in import_files
session.run()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/importer.py", line 340, in run pl.run_parallel(QUEUE_SIZE)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/util/pipeline.py", line 446, in run_parallel
raise exc_info[1].with_traceback(exc_info[2]) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/util/pipeline.py", line 311, in run
out = self.coro.send(msg)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/util/pipeline.py", line 193, in coro
func(*(args + (task,)))
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/importer.py", line 1376, in lookup_candidates
task.lookup_candidates()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/importer.py", line 660, in lookup_candidates
autotag.tag_album(self.items, search_ids=self.search_ids)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/autotag/match.py", line 466, in tag_album
_add_candidate(items, candidates, matched_candidate)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/autotag/match.py", line 375, in _add_candidate
dist = distance(items, info, mapping)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/autotag/match.py", line 175, in distance
dist.add_string('artist', likelies['artist'], album_info.artist)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/autotag/hooks.py", line 539, in add_string
dist = string_dist(str1, str2)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/beets/autotag/hooks.py", line 260, in string_dist
str2 = str2.lower()
AttributeError: 'tuple' object has no attribute 'lower'```
maybe the problem is "(None,)" in Candidate: (None,) - KIMETSU NO YAIBA TV ANIMATION SERIES ENTERTAINMENT DISTRICT ARC VOLUME TWO SPECIAL CD (vgmdb-116834)
?
I'll look it up.
Well, found the issues. For the specific example you've shown me, there are no performers, composers or arrangers information. But in fact, the vgmdb.net information is overloaded with information. But if you were to check vgmdn.info (the api I'm currently using), most of the information is missing. Ergo, the api is not that complete.
There is a quick fix solution that is to simply replace the default artist before replacement to "" instead of None.
By default, we are going performers -> composers -> for artist information. The search for the artist is stopped once we find one satistfying information. What's your opinion on what should be the "artist" of the album (for example KIMETSU NO YAIBA TV ANIMATION SERIES VOLUME 1 SPECIAL CD)?
I'll quick fix that tomorrow.
Btw, have you found beets with my plugin to be somewhat slow?
hey, thanks for giving a look.regarding the question who should be the artist, personally I'd go composers->performers , because there are many cases of album with many anime characters as performers,where each one has his song. for example: http://vgmdb.info/album/43809 going performers->composers, it tags as artist of album and of track "Maaya Uchida",who sings in just one song, while every track is composed,arranged and made lyrics by "ZAQ", who is the true album artist imo. another example: http://vgmdb.info/album/90076 it has like 30 tracks, and only 1 or 2 with vocals. going performs-> composer it tags as album artist "Asami Seto",who sings in one song only, while the album artist imo should be the composer of all tracks "fox capture plan'. other example: http://vgmdb.info/album/106627 same thing. composer "Hiroyuki Sawano" should be tagged as true album artist, as spotify says.
regarding the question who should be the artist of KIMETSU NO YAIBA TV ANIMATION SERIES VOLUME 1 SPECIAL CD, it should be always the composer, ie Yuki Kajiura. in this case (and some others,example https://vgmdb.net/album/86799) it gets called " BGM" in vgmdb.net, not parsed by the api sadly. In some other cases(https://vgmdb.net/album/86128 or https://vgmdb.net/album/77854 ) it is presented as "all composed by"/"all music composed by", also this field is not present in the api.
regarding the speed of the plugin, it seems good to me. it is just a bit slower than MusicBrainz research, but nothing crazy. I didn't notice it before you told me.So it should be fine.
I'm going to close this discussion, I fixed the bug and changed the artist priority. Thank you for your inputs. It's always good to know someone has a use ( and I get bugtester :) )
Hi , thanks for this plugin. it seems the only vgmdb plugin working to me. but itseems working just with mp3 files. I tried with 3 flac albums and all caused errors, even trying with manual id. log: