beets icon indicating copy to clipboard operation
beets copied to clipboard

Bug in new UI when multiple mediums are in one release

Open JOJ0 opened this issue 2 years ago • 6 comments

Possible bug in this function when multiple mediums are in one release: https://github.com/beetbox/beets/pull/3721/files#r1328227367

Update: I copied over @RollingStar 's initial report of this issue as it was here: https://github.com/beetbox/beets/pull/3721#issuecomment-1722714076

Orignal report

Possible bug in mixed-medium releases (ex. 1 CD and 1 vinyl record)

https://github.com/beetbox/beets/pull/3721/files#r1328227367

Most logical fix might be "2xMedia" or "2xMixed". Keeping the new UI short horizontally is a goal.

https://musicbrainz.org/release/581db767-5221-424b-b6a0-d5db2ff707a1

image

JOJ0 avatar Oct 12 '23 16:10 JOJ0

https://github.com/beetbox/beets/pull/3721#issuecomment-1722714076

RollingStar avatar Oct 12 '23 18:10 RollingStar

I think I'm also running into this issue trying to import Hybrid SACDs.

Examples here: https://github.com/beetbox/beets/discussions/4976

InvisibleFunction avatar Oct 27 '23 14:10 InvisibleFunction

Possible bug in this function when multiple mediums are in one release: https://github.com/beetbox/beets/pull/3721/files#r1328227367

The lines of code referenced, here in detail and In their current state, as of writing:

https://github.com/beetbox/beets/blob/f984749cc638632c10ab9fc1bfe683c6f3bebaf6/beets/ui/commands.py#L450-L461

which brings me to the conclusion: This is not the function where the line in the screenshot above is produced.

The thing in the screenshot comes from the disambig_string() which is this one:

https://github.com/beetbox/beets/blob/f984749cc638632c10ab9fc1bfe683c6f3bebaf6/beets/ui/commands.py#L198-L210

I guess that was just a quick analysis back then without double checking everything from @RollingStar (our main-topic had more priority than finding the root cause of this issue here), I just wanted to clarify and make sure we are all on the same page. Now let's work from here :-)

JOJ0 avatar Oct 28 '23 10:10 JOJ0

I think I'm also running into this issue trying to import Hybrid SACDs.

Examples here: #4976

I've not entirely made it through your report over there. Just want to mention that up to now I was assuming that this exact issue here, is only cosmetical and has nothing to do with the matching process per-se.

I could be wrong but please double check my assumption! :-)

JOJ0 avatar Oct 28 '23 10:10 JOJ0

Sorry I had the wrong function listed. I didn't debug the function so it was just a guess based on some searches.

RollingStar avatar Oct 29 '23 00:10 RollingStar

No worries at all! I learned something new. The function you mentioned is in fact the one that does the headlines like for example

* CD1

:-)

JOJ0 avatar Oct 29 '23 00:10 JOJ0

Is the issue here?

https://github.com/beetbox/beets/blob/3548e353602b47d1dca5e1a0063d27f0b5ad3736/beets/autotag/mb.py#L598

It looks like it just grabs the format of the first medium and uses that for everything.

InvisibleFunction avatar Mar 03 '24 03:03 InvisibleFunction

I think this is closed now.

InvisibleFunction avatar Mar 30 '24 19:03 InvisibleFunction