aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_save.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* playlist_save: use temp2 instead of tempMax Kellermann2012-10-051-1/+2
| | | | Fixes minor Windows compatibility problem.
* Merge branch 'v0.16.x'Max Kellermann2012-06-121-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/cmdline.c src/decoder/wildmidi_decoder_plugin.c src/gcc.h src/glib_compat.h src/input_stream.c src/output_list.c src/output_thread.c valgrind.suppressions
| * Work around incorrect g_file_test() behavior on Win32Denis Krjuchkov2012-06-121-0/+1
| | | | | | | | | | | | | | g_file_test is redefined to be g_file_test_utf8 and thus can't handle non-ASCII characters. This fix adds simple wrapper (taken from glib) that fixes encoding and calls g_file_test_utf8. All required inclusions of glib_compat.h are added as well.
* | playlist_save: add start/end_index parametersMax Kellermann2012-02-091-2/+7
| |
* | stored_playlist: return GError, code is playlist_resultMax Kellermann2011-09-111-5/+5
| | | | | | | | | | Improve error reporting and handling. command.c gets the new function print_error(), which sends a GError to the client.
* | playlist: move enum playlist_result to playlist_error.hMax Kellermann2011-09-111-0/+2
| | | | | | | | Reduce header dependencies.
* | copyright year 2011Max Kellermann2011-01-291-1/+1
| |
* | player_control: removed the global variable "pc"Max Kellermann2011-01-101-3/+4
|/ | | | | | | Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* Merge branch 'v0.15.x'Max Kellermann2009-12-141-1/+4
|\ | | | | | | | | Conflicts: src/decoder/ffmpeg_plugin.c
| * mapper: apply filesystem_charset to playlistsMax Kellermann2009-12-081-1/+4
| | | | | | | | | | | | | | | | This fixes an inconsistency in the stored playlist subsystem: when obtaining the list of playlists (listplaylist, listplaylistinfo), the file names in the playlist directory are converted to UTF-8 (according to filesystem_charset), but when saving or loading playlists, the filesystem_charset setting was ignored.
* | include config.h in all sourcesMax Kellermann2009-11-121-0/+1
| | | | | | | | | | | | After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
* | mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ...Max Kellermann2009-10-201-1/+1
| | | | | | | | | | Try to be as portable as possible, use GLib path name functions and macros.
* | playlist: no CamelCaseMax Kellermann2009-07-141-2/+2
|/
* all: Update copyright header.Avuton Olrich2009-03-131-6/+7
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* ls: moved generic URI utilities to uri.cMax Kellermann2009-02-251-1/+1
| | | | | "ls" is a bad name for a library which parses URIs. We'll move the rest of the "ls" library later.
* playlist_save: added spl_save_playlist()Max Kellermann2009-02-041-0/+6
| | | | spl_save_playlist() is a wrapper for spl_save_queue().
* playlist: renamed global "playlist" variable to "g_playlist"Max Kellermann2009-02-041-3/+3
| | | | | | | Export the "g_playlist" variable, and pass it to all playlist functions. This way, we can split playlist.c easier into separate parts. The code which initializes the singleton variable is moved to playlist_global.c.
* playlist: moved is_valid_playlist_name() to stored_playlist.cMax Kellermann2009-01-251-1/+1
|
* playlist: moved savePlaylist() and loadPlaylsit() to playlist_save.cMax Kellermann2009-01-251-0/+65
|
* stored_playlist: moved configuration variables from playlist.cMax Kellermann2009-01-251-1/+1
| | | | | Don't declare and export variables specific to stored playlists in playlist.c/playlist.h.
* path: allocate buffer in fs_charset conversion functionsMax Kellermann2009-01-081-6/+5
| | | | | Don't use fixed static buffers. GLib allocates a new string for us anyway, let's just return this one instead of copying it.
* song: allocate the result of song_get_url()Max Kellermann2009-01-041-5/+7
|
* playlist: use uri_has_scheme() instead of isRemoteUrl()Max Kellermann2009-01-041-1/+1
| | | | | | For internal checks (i.e. not in command.c), we need to check whether an URI is in the databse, in the local file system or a remote URI with a scheme.
* mapper: allocate the result of map_directory_child_fs(), map_song_fs()Max Kellermann2009-01-021-2/+4
| | | | Don't use fixed stack buffers.
* mapper: allocate the result of map_uri_fs(), map_directory_fs()Max Kellermann2009-01-021-4/+8
| | | | Don't use fixed stack buffers.
* playlist: fix stored playlist modifications with absolute pathsMax Kellermann2008-12-241-1/+1
| | | | | | | | When save_absolute_paths_in_playlists was enabled in mpd.conf, MPD broke all playlists when manipulated using the "playlistdelete" command. The reason was that map_directory_child_fs() was used, which doesn't accept slashes in the file name. Use the new map_uri_fs() function instead.
* ls: removed isValidRemoteUtf8Url()Max Kellermann2008-12-161-1/+1
| | | | | The function didn't do anything useful, it was just several lines obfuscating that it was only forwarding isRemoteUrl()'s return value.
* update: check return valuesMax Kellermann2008-10-311-1/+2
| | | | | Nearly all mapper functions can fail and will then return NULL. Add checks to all callers.
* stored_playlist: don't map files outside the databaseMax Kellermann2008-10-231-2/+3
| | | | | | Don't attempt to map paths which are already absolute with map_song_fs(): check with song_in_database() instead of song_is_file().
* playlist: don't use uninitialized local variable (typo)Max Kellermann2008-10-141-1/+1
| | | | | Instead of the uninitialized local variable "s", I should have used "uri".
* mapper: new song-to-filesystem mapper libraryMax Kellermann2008-10-141-8/+14
| | | | | | The mapper library maps directory and song objects to file system paths. With this central library, the code mixture in path.c should be cleaned up, and we will be able to add neat features like aliasing.
* playlist: moved code to playlist_save.cMax Kellermann2008-10-141-0/+49
playlist_print_song() and playlist_print_uri() handle charset conversion and (optional) music directory prefixing.