Skip to content

Commit

Permalink
Remove StreamName= key from Cantata created playlist entries
Browse files Browse the repository at this point in the history
  • Loading branch information
a-dekker committed Oct 23, 2021
1 parent 1937e6d commit 1724f8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mpd/networkaccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1740,12 +1740,12 @@ QList<MpdTrack*>* NetworkAccess::parseMPDTracks(QString cartist)
}

lastLine = !mTCPSocket->canReadLine();
qDebug() << "lastLine: " << lastLine << " trackNr: " << trackNr << " file: " << temptrack->getFileName();
// qDebug() << "lastLine: " << lastLine << " trackNr: " << trackNr << " file: " << temptrack->getFileName();
if ((trackNr > 1 && gotit) || (lastLine && trackNr > 0)) {
gotit = false;
temptrack->setFileUri(file);
if (tmpTitle.isEmpty()) {
tmpTitle = file.split('#').last();
tmpTitle = file.split('#').last().replace("StreamName=", "").replace("%20"," ");
}

if (albumartist==cartist||artist==cartist||cartist=="") {
Expand All @@ -1754,7 +1754,7 @@ QList<MpdTrack*>* NetworkAccess::parseMPDTracks(QString cartist)
}
tmpTitle.clear();
temptrack->setPlaying(false);
qDebug() << "add: " << temptrack->getTitle();
// qDebug() << "add: " << temptrack->getTitle();
temptracks->append(temptrack);
temptrack->moveToThread(mQMLThread);
QQmlEngine::setObjectOwnership(temptrack, QQmlEngine::CppOwnership);
Expand Down

0 comments on commit 1724f8c

Please sign in to comment.