Page 1 of 1
Revert when --action keeplink is used?
Posted: 09 Mar 2016, 13:50
by junior0332
Hi RedNoah,
Is it possible to use the revert script when --action keeplink is used? It seems to only work when there are no symlinks are involved.
Re: Revert when --action keeplink is used?
Posted: 09 Mar 2016, 14:31
by rednoah
No. FileBot doesn't keep records about what "rename" action was used to process the files, hence it can't reverse it. The revert script assumes that files have been moved from the original location.
What happens if you try? I'd assume if you revert /original/path (link) -> /new/path (file) then it might override the link with the file.
Re: Revert when --action keeplink is used?
Posted: 10 Mar 2016, 00:39
by junior0332
When I revert and specify the symlink at the original location, it just completes without any action.
Code: Select all
filebot -script fn:revert /server/downloads/Last.Week.Tonight.With.John.Oliver.S03E01.720p.HDTV.x264-BATV.mkv
Done ヾ(@⌒ー⌒@)ノ
Same thing if I revert the renamed file
Code: Select all
filebot -script fn:revert /server/tv\ shows/Last\ Week\ Tonight\ with\ John\ Oliver/Season\ 03/Last\ Week\ Tonight\ with\ John\ Oliver\ -\ 3x01\ -\ Episode\ 60.mkv
Done ヾ(@⌒ー⌒@)ノ
That's ok though. I kind of get why it won't work. Thanks for your time.
Re: Revert when --action keeplink is used?
Posted: 10 Mar 2016, 20:36
by rednoah
r3669 correctly reverts for all rename actions. There is also a new filebot -revert /path command which uses that revert behaviour.
The fn:revert script will not be changed, since being able to force how files are reverted (move/copy/symlink back) has some use cases.