diff options
author | waker <wakeroid@gmail.com> | 2012-04-30 22:05:41 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-04-30 22:06:48 +0200 |
commit | 8666c508aac74f5dc2d4ed0c3991a2a9a11f4d93 (patch) | |
tree | adc4cbdaf0d59afc75b081384cbc448c7c101f2f | |
parent | 5abbd96a58cc324167e5161d53f0add4dc45aa68 (diff) |
shellexec: don't use title formatting / track access on playlist and common actions
-rw-r--r-- | plugins/shellexec/shellexec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/shellexec/shellexec.c b/plugins/shellexec/shellexec.c index de0659dc..b419a4c9 100644 --- a/plugins/shellexec/shellexec.c +++ b/plugins/shellexec/shellexec.c @@ -83,6 +83,11 @@ 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)) { + trace ("%s\n", action->shcommand); + system (action->shcommand); + return 0; + } char cmd[_POSIX_ARG_MAX]; int res = deadbeef->pl_format_title_escaped (it, -1, cmd, sizeof (cmd) - 2, -1, action->shcommand); if (res < 0) { |