diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index ae331fc6..b73c22ca 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -889,6 +889,11 @@ public class MediaBindingBean { return SLASH.splitAsStream(MediaTypes.getDefault().getMediaType(getExtension())).collect(toList()); } + @Define("path") + public File getMediaPath() throws Exception { + return getStructurePathTail(getMediaFile()); + } + @Define("f") public File getMediaFile() { // make sure file is not null, and that it is an existing file