[amc] Change output folder dynamically
Posted: 06 Aug 2016, 18:45
So I downloaded amc.groovy to edit it locally.
I need two different output folders depending on the year.
So I tried to add a new switch and no matter what i do it says invalid option. So I just statically assigned my second ouput folder in the script.
Then I setup an if statement which basically says if the mov.year matches the current year then the outputFolder is the second output folder, else it's the first one.
I debugged the code and it's working fine, but eveything still goes to the output folder in the args. All of this must be happening in filebot and not in the script.
So how can I change the output folder dynamically within the script. Since everything seems to be hardcoded, or at least i can't seem to find any exposed variables or how to change them.
I need two different output folders depending on the year.
So I tried to add a new switch and no matter what i do it says invalid option. So I just statically assigned my second ouput folder in the script.
Then I setup an if statement which basically says if the mov.year matches the current year then the outputFolder is the second output folder, else it's the first one.
I debugged the code and it's working fine, but eveything still goes to the output folder in the args. All of this must be happening in filebot and not in the script.
So how can I change the output folder dynamically within the script. Since everything seems to be hardcoded, or at least i can't seem to find any exposed variables or how to change them.