Show channel if the entry is a stream.
This commit is contained in:
parent
e6ecb50069
commit
f4d010e59a
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue