Duplicate file moving script

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
nzdreamer55
Posts: 180
Joined: 20 Jul 2012, 23:25

Duplicate file moving script

Post by nzdreamer55 »

Hello everyone. I have been using the AMC script and it works well, however I also want to use the duplicate script to clean up some stuff

Shell: Select all

filebot -script dev:duplicates /share/ZFS18_DATA/Media/Series --action move --output /share/ZFS18_DATA/Media/Series/Processed-Duplicates
This works to identify duplicates, but it won't move them. Can someone help me with this as I think it has to do with there the paths and flags are.

Thank you

Steve
User avatar
rednoah
The Source
Posts: 24105
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Duplicate file moving script

Post by rednoah »

:idea: The duplicates script is primarily used for finding and printing files that are duplicates.


:arrow: You can however pass those files onto a -rename call to string things together like so:

Console Output: Select all

$ filebot -script fn:duplicates "/path/to/TV Shows" -rename --output "/path/to/Duplicates" --format "{n}/{fn}" --action TEST
[*] Alias - 1x01 - Truth Be Told
[+] 1. TV Shows/Alias - S01E01 - Truth Be Told [2160p].mkv
[-] 2. TV Shows/Alias - S01E01 - Truth Be Told [480p].mkv
1 duplicates
Rename files using [Extended Attributes]
[TEST] from [TV Shows/Alias - S01E01 - Truth Be Told [480p].mkv] to [Duplicates/Alias/Alias - S01E01 - Truth Be Told [480p].mkv]
Processed 1 file
:idea: Please read the FAQ and How to Request Help.
Post Reply