Improve playlist portability by changing the output of the --playlist option so that track paths are relative to the m3u file's location instead of absolute. While we're at it fix the header of the file so that it starts with #EXTM3U as per the spec.
An example: If you specifiy --playlist as /home/user/playlists/playlist_outfile.m3u and one of the selected tracks is located at home/user/music/some_awesome_music.mp3 the resulting playlist will write that track's location out as ../music/some_awesome_music.mp3.
Improve playlist portability by changing the output of the
--playlist
option so that track paths are relative to the m3u file's location instead of absolute. While we're at it fix the header of the file so that it starts with#EXTM3U
as per the spec.An example: If you specifiy
--playlist
as/home/user/playlists/playlist_outfile.m3u
and one of the selected tracks is located athome/user/music/some_awesome_music.mp3
the resulting playlist will write that track's location out as../music/some_awesome_music.mp3
.