diff options
Diffstat (limited to 'src/qmmpui/playlistitem.cpp')
| -rw-r--r-- | src/qmmpui/playlistitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmmpui/playlistitem.cpp b/src/qmmpui/playlistitem.cpp index 23ce0b0c7..ad4bc9cef 100644 --- a/src/qmmpui/playlistitem.cpp +++ b/src/qmmpui/playlistitem.cpp @@ -134,12 +134,12 @@ void PlayListItem::readMetadata() m_title = printTag(m_title, "%f", url().section('/',-1)); m_title = printTag(m_title, "%F", url()); m_title = printTag(m_title, "%y", QString("%1").arg(year ())); - + //TODO rewrite this if (m_title.isEmpty()) { if (url().startsWith("http://") && m_fullStreamPath) m_title = url(); - else + else if (url().contains('/')) m_title = url().split('/',QString::SkipEmptyParts).takeLast (); } if (m_info) |
