Duplicate handling options

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
sgtwtf
Posts: 5
Joined: 19 Apr 2020, 15:50

Duplicate handling options

Post 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"
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Duplicate handling options

Post 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
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Duplicate handling options

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply