From f4d010e59ae84774bd00b31a644ea7d14b686410 Mon Sep 17 00:00:00 2001 From: Tobias Rundstrom Date: Thu, 23 Mar 2006 22:33:05 -0400 Subject: [PATCH] Show channel if the entry is a stream. --- PlaylistList.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PlaylistList.cpp b/PlaylistList.cpp index f94de5a..fe6961b 100644 --- a/PlaylistList.cpp +++ b/PlaylistList.cpp @@ -218,8 +218,12 @@ PlaylistList::mediainfoChanged (uint id, const QHash &h) if (h.contains ("artist") && h.contains ("album") && h.contains ("title")) { n = h.value("artist") + " - " + h.value("album") + " - " + h.value("title"); } else { - QString t = h.value("url"); - n = t.section ("/", -1); + 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")) {