Written with and analyzed by AI
The fnGuessReleaseType function in mbimport.js contains a logical gap for releases containing exactly 7 or 8 tracks.
perhaps_EP checks for <= 6 tracks, while perhaps_album checks for > 8 tracks. As a result, a release with 8 tracks and a duration over 30 minutes sets perhaps_album to false.
Because of this, the condition if (perhaps_album && duration_mn > 30) evaluates to false, and the function returns an empty string "" instead of "album".
Additionally, explicit string tokens in the release title (like "EP" or "Single") should ideally override strict duration rules.
Example release where type detection fails:
https://volumo.com/album/8721466924472-train-dreams-ep
Written with and analyzed by AI
The
fnGuessReleaseTypefunction inmbimport.jscontains a logical gap for releases containing exactly 7 or 8 tracks.perhaps_EPchecks for<= 6tracks, whileperhaps_albumchecks for> 8tracks. As a result, a release with 8 tracks and a duration over 30 minutes setsperhaps_albumtofalse.Because of this, the condition
if (perhaps_album && duration_mn > 30)evaluates tofalse, and the function returns an empty string""instead of"album".Additionally, explicit string tokens in the release title (like
"EP"or"Single") should ideally override strict duration rules.Example release where type detection fails:
https://volumo.com/album/8721466924472-train-dreams-ep