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:
craig.p.drummond
2013-05-04 11:08:01 +00:00
committed by craig.p.drummond
parent 813ee2f784
commit 0b7409b729

View File

@@ -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)) {