Show channel if the entry is a stream.

This commit is contained in:
Tobias Rundstrom 2006-03-23 22:33:05 -04:00
parent e6ecb50069
commit f4d010e59a

View file

@ -217,10 +217,14 @@ PlaylistList::mediainfoChanged (uint id, const QHash<QString, QString> &h)
QString n;
if (h.contains ("artist") && h.contains ("album") && h.contains ("title")) {
n = h.value("artist") + " - " + h.value("album") + " - " + h.value("title");
} else {
if (h.contains ("channel")) {
n = h.value("channel") + " - " + h.value("title");
} else {
QString t = h.value("url");
n = t.section ("/", -1);
}
}
i->setText (n);
if (h.contains ("duration")) {
int d = h.value("duration").toInt();