When scanning library, ignore songs with no filename - looks like the code is probably parsing too many lines, and comming up with an empty song :-(
This commit is contained in:
committed by
craig.p.drummond
parent
813ee2f784
commit
0b7409b729
@@ -379,6 +379,9 @@ MusicLibraryItemRoot * MPDParseUtils::parseLibraryItems(const QByteArray &data)
|
||||
if (i == lines.size() - 1 || lines.at(i + 1).startsWith("file:") || lines.at(i + 1).startsWith("playlist:")) {
|
||||
Song currentSong = parseSong(currentItem, false);
|
||||
currentItem.clear();
|
||||
if (currentSong.file.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (Song::Playlist==currentSong.type) {
|
||||
if (songItem && Utils::getDir(songItem->file())==Utils::getDir(currentSong.file)) {
|
||||
|
||||
Reference in New Issue
Block a user