summaryrefslogtreecommitdiff
path: root/plugins/shellexec
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-11-04 20:33:08 +0100
committerGravatar waker <wakeroid@gmail.com>2012-11-04 20:33:08 +0100
commit507066e6d3eaf4e1812eb9bf2c0791e6f2670f04 (patch)
tree9d58e494cedc7c64f23f6376d976afed670709f1 /plugins/shellexec
parent4a96b1a94e135617a1388b5b26040d774db2fc34 (diff)
transition to the new plugin action API (WIP)
Diffstat (limited to 'plugins/shellexec')
-rw-r--r--plugins/shellexec/shellexec.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/shellexec/shellexec.c b/plugins/shellexec/shellexec.c
index 7d49c2d6..b011067f 100644
--- a/plugins/shellexec/shellexec.c
+++ b/plugins/shellexec/shellexec.c
@@ -83,7 +83,7 @@ trim (char* s)
static int
shx_callback (Shx_action_t *action, DB_playItem_t *it)
{
- if (action->parent.flags&(DB_ACTION_PLAYLIST|DB_ACTION_COMMON)) {
+ if (action->parent.flags&(DB_ACTION_COMMON)) {
trace ("%s\n", action->shcommand);
system (action->shcommand);
return 0;
@@ -158,13 +158,10 @@ shx_save_actions (void)
if(action->shx_flags & SHX_ACTION_LOCAL_ONLY) {
strcat(conf_line, "local,");
}
- if(action->parent.flags & DB_ACTION_PLAYLIST) {
- strcat(conf_line, "playlist,");
- }
if(action->parent.flags & DB_ACTION_SINGLE_TRACK) {
strcat(conf_line, "single,");
}
- if(action->parent.flags & DB_ACTION_ALLOW_MULTIPLE_TRACKS) {
+ if(action->parent.flags & DB_ACTION_MULTIPLE_TRACKS) {
strcat(conf_line, "multiple,");
}
if(action->parent.flags & DB_ACTION_COMMON) {
@@ -241,10 +238,7 @@ shx_get_actions (DB_plugin_action_callback_t callback)
action->parent.flags |= DB_ACTION_SINGLE_TRACK;
if (strstr (flags, "multiple"))
- action->parent.flags |= DB_ACTION_ALLOW_MULTIPLE_TRACKS;
-
- if (strstr (flags, "playlist"))
- action->parent.flags |= DB_ACTION_PLAYLIST;
+ action->parent.flags |= DB_ACTION_MULTIPLE_TRACKS;
if (strstr (flags, "common"))
action->parent.flags |= DB_ACTION_COMMON;