Standardise stream detection

This commit is contained in:
craig
2012-03-02 20:27:23 +00:00
committed by craig
parent 5ac79c9be5
commit 413035541c
5 changed files with 10 additions and 36 deletions

View File

@@ -183,7 +183,7 @@ public:
QString title;
QString track;
QString duration=Song::formattedTime(song.time);
bool stream=song.file.isEmpty() || song.file.contains("://");
bool stream=song.isStream();
int state=index.data(PlayQueueView::Role_Status).toInt();
QString trackTitle=!song.albumartist.isEmpty() && song.albumartist != song.artist
? song.title + " - " + song.artist