Bug 237654 - Playlist m3u import fails
Summary: Playlist m3u import fails
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 1.70.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michał Małek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 19:04 UTC by Jonathan Arnold
Modified: 2010-05-26 15:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.92.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Arnold 2010-05-14 19:04:47 UTC
Version:           1.70.0 (using KDE 4.4.3)
OS:                Linux
Installed from:    Archlinux Packages

Importing playlists created by Asunder no longer works. The files are relative and k3b complains that it can't open the file. Looks like it is missing a trailing /. For instance, using the following m3u file:

#EXTM3U
#EXTINF:253,Frou Frou - Let Go
Let Go.flac
#EXTINF:277,Frou Frou - Breathe In
Breathe In.flac
#EXTINF:279,Frou Frou - It's Good To Be In Love
It's Good To Be In Love.flac
#EXTINF:241,Frou Frou - Must Be Dreaming
Must Be Dreaming.flac
#EXTINF:333,Frou Frou - Psychobabble
Psychobabble.flac
#EXTINF:249,Frou Frou - Only Got One
Only Got One.flac
#EXTINF:334,Frou Frou - Shh
Shh.flac
#EXTINF:259,Frou Frou - Hear Me Out
Hear Me Out.flac
#EXTINF:217,Frou Frou - Maddening Shroud
Maddening Shroud.flac
#EXTINF:238,Frou Frou - Flicks
Flicks.flac
#EXTINF:281,Frou Frou - The Dumbing Down Of Love
The Dumbing Down Of Love.flac

generates the following errors:

Unable to find the following files:
/home/jdarnold/Music/Frou Frou/DetailsThe Dumbing Down Of Love.flac
/home/jdarnold/Music/Frou Frou/DetailsFlicks.flac
/home/jdarnold/Music/Frou Frou/DetailsMaddening Shroud.flac
/home/jdarnold/Music/Frou Frou/DetailsHear Me Out.flac
/home/jdarnold/Music/Frou Frou/DetailsShh.flac
/home/jdarnold/Music/Frou Frou/DetailsOnly Got One.flac
/home/jdarnold/Music/Frou Frou/DetailsPsychobabble.flac
/home/jdarnold/Music/Frou Frou/DetailsMust Be Dreaming.flac
/home/jdarnold/Music/Frou Frou/DetailsLet Go.flac
/home/jdarnold/Music/Frou Frou/DetailsIt's Good To Be In Love.flac
/home/jdarnold/Music/Frou Frou/DetailsBreathe In.flac

Note the missing trailing slash for the directory it is in.

And if I edit the .m3u file to add the full folder to the filenames, it then imports the songs in random order. It should import them in the order found in the m3u file.
Comment 1 Michał Małek 2010-05-14 21:41:10 UTC
SVN commit 1126761 by mmalek:

Fixed reading M3U playling contents. Use QDir methods for proper file path construction.
BUG: 237654


 M  +3 -1      k3baudiodoc.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1126761