More executing external commands arugments

Forums:

Hello,

It would be nice if there some more arugments.

# %f - file path
# %i - title made from tags
# %S - start block mark (in seconds)
# %E - end block mark (in seconds)

ExecCommand1 = "mp3gain -a %f"

%d = directory path

would be nice so mp3gain get all files in directory as one album.

Thank you

I agree and intend to make the substitution machanism much more general in the future so that you can essentially define your own, but as with all my intended enhancements it's not here yet.

You can try to apply this patch from my personal fork: https://github.com/tomaszg7/mocp/commit/c93fb042fac518bd040e12dcaf99549a54c0b6e8 It should apply cleanly also to official MOC version.

As a workaround, you can do it with a script, for example using dirname command.