Repository: CDrummond/cantata

Issue #1650: CUE file with multiple source files producing duplicate tracks.
Created: 2020-11-13T19:43:51Z
NOTE Cantata is now in a bug-fix only state. Only bugs that are actual bugs, and not missing functionality will be fixed. Pull requests, however, will still be accepted.

Describe the bug
I noticed that in each album all my songs are twice. Once with a working file and once with a non working file which also shows no track duration. I then realized that it must be related to the .cue file. So I removed a .cue file from a folder and suddenly everything gets displayed correctly.
To Reproduce
Steps to reproduce the behavior:

Add folder which includes a whole album of tracks + a .cue file
View that album in library view and you will see each track twice (once working, once not working)
Add that album to the playlist and you will have again each track twice (once working, once not working)
Remove the .cue file from the folder
Refresh database
Everything will be fine

Expected behavior
Parse .cue files correctly
Screenshots

Version Info

OS: Arch Linux 5.9.8.a-1-hardened
Cantata Version: 2.4.2
MPD Version: 0.22.3

Additional context
As an example, here is the content of the .cue file from the screenshot above:
`
REM GENRE Alternative
REM DATE 2016
REM DISCID 850A290A
REM COMMENT "ExactAudioCopy v1.1"
CATALOG 0602547950864
PERFORMER "Glass Animals"
TITLE "How to Be a Human Being"
FILE "01 - Life Itself.wav" WAVE
TRACK 01 AUDIO
TITLE "Life Itself"
PERFORMER "Glass Animals"
ISRC GB2DY1600018
INDEX 01 00:00:00
FILE "02 - Youth.wav" WAVE
TRACK 02 AUDIO
TITLE "Youth"
PERFORMER "Glass Animals"
ISRC GB2DY1600029
INDEX 01 00:00:00
FILE "03 - Season 2 Episode 3.wav" WAVE
TRACK 03 AUDIO
TITLE "Season 2 Episode 3"
PERFORMER "Glass Animals"
ISRC GB2DY1600026
INDEX 01 00:00:00
FILE "04 - Pork Soda.wav" WAVE
TRACK 04 AUDIO
TITLE "Pork Soda"
PERFORMER "Glass Animals"
ISRC GB2DY1600025
INDEX 01 00:00:00
FILE "05 - Mama's Gun.wav" WAVE
TRACK 05 AUDIO
TITLE "Mama's Gun"
PERFORMER "Glass Animals"
ISRC GB2DY1600023
INDEX 01 00:00:00
FILE "06 - Cane Shuga.wav" WAVE
TRACK 06 AUDIO
TITLE "Cane Shuga"
PERFORMER "Glass Animals"
ISRC GB2DY1600057
INDEX 01 00:00:00
FILE "07 - The Other Side Of Paradise.wav" WAVE
TRACK 07 AUDIO
TITLE "The Other Side Of Paradise"
PERFORMER "Glass Animals"
ISRC GB2DY1600028
INDEX 01 00:00:00
FILE "08 - Take A Slice.wav" WAVE
TRACK 08 AUDIO
TITLE "Take A Slice"
PERFORMER "Glass Animals"
ISRC GB2DY1600027
INDEX 01 00:00:00
FILE "09 - Poplar St.wav" WAVE
TRACK 09 AUDIO
TITLE "Poplar St"
PERFORMER "Glass Animals"
ISRC GB2DY1600024
INDEX 01 00:00:00
FILE "10 - Agnes.wav" WAVE
TRACK 10 AUDIO
TITLE "Agnes"
PERFORMER "Glass Animals"
ISRC GB2DY1600021
INDEX 01 00:00:00
`

Duplicate issue #1686: Duplicated empty album are present on Artist
Created: 2021-02-18T17:46:40Z
Hi!
I have a problem with Cantata 2.4.2 on Manjaro KDE, there are some duplicates album inside my library that are "empty".

As you see on the image there is a duplicate album with an Unknown duration.
Cue files setting is "Do not List" so i don't think it's here the problem.
Cantata is using the default Music folder, inside there are only FLAC files, divided int Artist/Album folders.
Is is a regression? My database is corrupted?
Server version: 0.22.4, Cantata 2.4.2
If you need more information, just ask! Thanks for this fantastic software!

Closing comment (2021-02-22T21:27:45Z): Ah, so this bug is a duplicate of #1650