Hi guys,
after my filebot script moved the the series to the right place, i want to make other things with the series in the new location.
So i thought the best way would be to export or declare the variable after my "--format"-statement like this:
--def exec="newdestpath=\"{file}\""
the filebotvariable "{file}" is the full path of the moved file.
but when i use the variable one line later...:
echo " New Destination Path :" $newdestpath
.... its empty.
Is there a better way to get the full path to the new location?
Thanks for helping!
just.RooT
Set shell-variable in format expression
Re: Set shell-variable in format expression
--def exec is for executing external tools. So you probably wanna use --def exec to call whatever you wanna call in your bash script anyway, with the variables you need for your custom post-processing script.
Note that exec is called for each processed file, so "setting a variable" doesn't cut it.
If you're modifying the amc script you should just look into the code a bit. For example the rename() call returns the list of destination files. Also you can access the Map of source/destination files anytime with getRenameLog().
Note that exec is called for each processed file, so "setting a variable" doesn't cut it.
If you're modifying the amc script you should just look into the code a bit. For example the rename() call returns the list of destination files. Also you can access the Map of source/destination files anytime with getRenameLog().