HOZHENWAI / Beets-Plugin_VGMdb

A small plugin to collect metadata from VGMdb and manage a VGMdb collection
13 stars 2 forks source link

Substitute publisher with distributor, if unavailable #28

Closed ivan-boikov closed 8 months ago

ivan-boikov commented 8 months ago

Sometimes a publisher is not specified (example: https://vgmdb.net/album/36099) which causes a crash at

if len(albuminfo["publisher"]["names"]) > 0

This PR adds a fallback to a dummy publisher and substitutes with a distributor, if found. I think it makes sense, given their keys are identical.