diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-23 05:50:28 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-23 05:50:28 +0000 |
| commit | a02b822d2badeb8dd8746473d5620d4f1d249e19 (patch) | |
| tree | 3eba2ce78813311a8e419a2e46322ba981155af1 /src | |
| parent | 10dd54c8f94e80ba59a2a846751fe382dc99fdbe (diff) | |
| download | qmmp-a02b822d2badeb8dd8746473d5620d4f1d249e19.tar.gz qmmp-a02b822d2badeb8dd8746473d5620d4f1d249e19.tar.bz2 qmmp-a02b822d2badeb8dd8746473d5620d4f1d249e19.zip | |
do not extract file name from URLs ending with a trailing slash
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4195 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/qmmpui/playlisttrack.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmmpui/playlisttrack.cpp b/src/qmmpui/playlisttrack.cpp index 0452423ef..b88be083c 100644 --- a/src/qmmpui/playlisttrack.cpp +++ b/src/qmmpui/playlisttrack.cpp @@ -146,6 +146,8 @@ void PlayListTrack::formatTitle() m_formattedTitle = f.parse(this); if (m_formattedTitle.isEmpty()) m_formattedTitle = value(Qmmp::URL).section('/',-1); + if (m_formattedTitle.isEmpty()) + m_formattedTitle = value(Qmmp::URL); if (m_settings->convertUnderscore()) m_formattedTitle.replace("_", " "); if (m_settings->convertTwenty()) |
