diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-12 21:17:28 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-12 21:17:28 +0200 |
commit | 7be7cfb77696e8e952997f3daf44bc3a1fdf64be (patch) | |
tree | 2d3803867386c681292ca34331b5e6963db61d2b /main.c | |
parent | ac633ff319b0a1aaa0f3bc431249d3fe5a1971fd (diff) |
added option to open files from command line in named playlist
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -210,6 +210,16 @@ server_exec_command_line (const char *cmdline, int len, char *sendback, int sbsi parg++; } if (parg < pend) { + if (conf_get_int ("cli_add_to_specific_playlist", 1)) { + const char *str = conf_get_str ("cli_add_playlist_name", "Default"); + int idx = plt_find (str); + if (idx < 0) { + idx = plt_add (plt_get_count (), str); + } + if (idx >= 0) { + plt_set_curr (idx); + } + } // add files if (!queue && plt_get_curr () != -1) { pl_clear (); |