Fix AudioCD playback.

This commit is contained in:
craig.p.drummond
2013-05-21 19:22:22 +00:00
committed by craig.p.drummond
parent 8d38143b6b
commit c409a6274d
2 changed files with 16 additions and 13 deletions

View File

@@ -210,9 +210,11 @@ Song HttpServer::decodeUrl(const QUrl &url) const
s.id=q.queryItemValue("id").toInt();
}
s.file=url.path();
s.type=Song::CantataStream;
#if defined CDDB_FOUND || defined MUSICBRAINZ5_FOUND
if (s.file.startsWith(QChar('/')+Song::constCddaProtocol)) {
s.file=s.file.mid(1);
s.type=Song::Cdda;
}
#endif
}