From 8666c508aac74f5dc2d4ed0c3991a2a9a11f4d93 Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 30 Apr 2012 22:05:41 +0200 Subject: shellexec: don't use title formatting / track access on playlist and common actions --- plugins/shellexec/shellexec.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/shellexec') 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) { -- cgit v1.2.3