Skip to content

Release type guessing logic fails on releases with 7-8 tracks #916

Description

@chaban-mb

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions