diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-26 14:09:09 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-26 14:09:09 +0000 |
commit | f16e3728711c3dd4fd2ca241ddbe3df4499d754e (patch) | |
tree | 42f2e7f653eb65f5ea17df82ff7d1aa3e230829a /src/tree.h | |
parent | f4d959a07b8a52233430dbf3d461b565628795c3 (diff) | |
download | mpd-f16e3728711c3dd4fd2ca241ddbe3df4499d754e.tar.gz mpd-f16e3728711c3dd4fd2ca241ddbe3df4499d754e.tar.xz mpd-f16e3728711c3dd4fd2ca241ddbe3df4499d754e.zip |
Make sure StoredPlaylists always contain UTF-8 paths that are either
relative paths in the DB or URLs. The main functional difference is that
playlistmove and playlistdelete will rewrite playlists in the correct
encoding and remove invalid lines instead of potentially modifying them.
The specific changes are:
appendSongToStoredPlaylist:
* Don't convert to FS charset
* Don't prepend music_directory if saving absolute paths
writeStoredPlaylistToPath:
* Convert to FS charset
* Prepend music_directory if saving absolute paths
loadStoredPlaylist:
* Make sure each line is either in the DB or a URL
loadPlaylist:
* Don't bother checking paths, since it's done in loadStoredPlaylist now
git-svn-id: https://svn.musicpd.org/mpd/trunk@6266 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions