Hi,
I'm writing a plugin for deluge that allows for tighter integration with filebot. A feature that I think would be really useful for the CLI is a rollback conflict action.
Currently, if I feed a folder/list of files to the CLI, if I want the movements to be atomic (to keep a season together, lets say) I have to manually revert each moved file if a single file skips or fails. This has come up a lot while coding my plugin since the files of a torrent need to be kept together.
I've coded this functionality into the python module I'm using to interact with the filebotCLI using revert statements and whatnot, but I think It'd be a great addition to standard filebot.
It could be added as another rename action, or possibly replace the behavior of --conflict fail.
I have no idea how difficult this would be to code as I don't know what if any state information filebot keeps between rename calls, so feel free to let me know it's too much of a pain in the ass.
Anyways I'm a big fan of filebot, keep up the great work!
-Laharah
Request: new conflict option, RollBack
Re: Request: new conflict option, RollBack
I suppose you had a look at the rename history and the revert script? I don't see the major issue. Just need to keep the output from the amc script and grab the file paths that did successfully get moved, and pass those to the revert script.
But why are you using --action move anyway? It's probably not a good idea. Use --action duplicate instead, and if something fails you can delete the files that did get processed if any.
But why are you using --action move anyway? It's probably not a good idea. Use --action duplicate instead, and if something fails you can delete the files that did get processed if any.