Page 1 of 1

Duplicate handling options

Posted: 19 Apr 2020, 21:29
by sgtwtf
i am trying to move or Mark (rename or just add badfile) a file that would be deleted with the dupilcate function but i can't seem to find a way to do this.

Code: Select all

filebot -script fn:duplicates "F:\Movies\Balls of Fury (2007) tt0424823" --conflict auto --format "{n} {y} {vf} {imdbid} BAD"
[*] Balls of Fury (2007)
[+] 1. F:\Movies\Balls of Fury (2007) tt0424823\Balls of Fury 2007 1040p tt0424823.mkv
[-] 2. F:\Movies\Balls of Fury (2007) tt0424823\Balls of Fury 2007 480p tt0424823.avi
also tried

Code: Select all

filebot -script fn:duplicates "F:\Movies\Balls of Fury (2007) tt0424823" --action move "f:\Movies\dup"

Re: Duplicate handling options

Posted: 20 Apr 2020, 07:22
by rednoah
Unfortunately, the duplicates script does not support this use case.


You could write your own script though, or modify the existing one to your needs:
https://github.com/filebot/scripts/blob ... tes.groovy

Re: Duplicate handling options

Posted: 20 Apr 2020, 17:05
by rednoah
I've enhanced the duplicates script with support for -rename and -mediainfo post-processing of duplicate files.

e.g.

Code: Select all

filebot -script fn:duplicates /path/to/input -rename --output /path/to/output --format {fn} --action TEST

:idea: You may need to use the latest revision of FileBot, and -script dev:duplicates, if you want to test this right now.