10-31-2022, 03:02 PM
(10-31-2022, 12:58 PM)Nutul Wrote:(10-31-2022, 12:53 PM)Tim Curtis Wrote:(10-31-2022, 12:46 PM)Nutul Wrote:(10-31-2022, 11:39 AM)Tim Curtis Wrote: The easiest is to just zip up a few files that exhibit the issue and PM a download link to the id's mentioned in @Nutul 's post.
@Tim Curtis
this resembles the problem I am facing with my flacs, when I do not have any .cue associated with them... I have looked into what MPD produces as a library file, and see no reference to those files, just the .cue's in the form /some/path/to/some/file.cue/track0001 etc. no evidence of /some/path/to/some/file.flac, for instance.
Did we update mpd, and it now behaves slightly different? (just suppositions)
Cheers, Al.
IIRC I was not able to repro that issue but I can certainly re-test.
I have the cue test files you provided a while back. What do I need to do to try and repro?
Just remove the .cue, leaving just the .flac(s) files in the folder...
(you could also play around with "Ignore Cue files" ON / OFF, although I saw no difference)
result:
the .flac files (or their metadata) won't show up in neither view (folder / album / tag)
Cheers, Al.
I was able to repro "the flac files won't show up" issue after removing the .cue and regenerating the library. What I did as a work around was to remove/reinsert USB drive, restart MPD and then regenerate the library. After that no issues. This seems like some sort of MPD bug.
As far as whats going on when the .cue is removed has to do with the fact that the .flac files have no track number defined and this is correct since the track info is in the .cue file. I'd consider the scenario where a .cue file is missing to be broken cue/flac. The fix would be to create or restore the .cue file.
With the .cue
Without the .cue there is breakage
Here's the code in scripts-library.js that tests track number to avoid printing bogus album headers for cue/flac.
Code:
// For cue format omit the audio file which otherwise will show up as a bogus album header.
// Typically the audio file in cue format will not have a track number since it's considered to be the whole album.
var cueFormats = ['flac', 'wav', 'aiff'];
var file0Ext = filteredSongs[0].file.substring(filteredSongs[0].file.lastIndexOf('.') + 1, filteredSongs[0].file.length);
if ($.inArray(file0Ext, cueFormats) != -1 && filteredSongs[0].tracknum == '') {
filteredSongs.shift();
}