From 507066e6d3eaf4e1812eb9bf2c0791e6f2670f04 Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 4 Nov 2012 20:33:08 +0100 Subject: transition to the new plugin action API (WIP) --- plugins/shellexec/shellexec.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'plugins/shellexec') 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; -- cgit v1.2.3