Delete after extraction

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Muddro
Posts: 33
Joined: 22 Mar 2014, 21:38

Delete after extraction

Post by Muddro »

Here is the uTorrent script I use:

filebot -script fn:amc --output "Z:/" --log-file amc.log --action copy --conflict override -non-strict --def music=n artwork=n "seriesFormat=/TV Shows/{n}/Season {s}/{n} - {s00e00} - {t}" "movieFormat=/Movies/{n} ({y})" "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"

After download a torrent that was archived (rar), it does as it is supposed to and extracts and copies the file. In the situation when something is extracted, is there a way to delete that afterwards?
User avatar
rednoah
The Source
Posts: 24037
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Delete after extraction

Post by rednoah »

Code: Select all

--def clean=y
Automatically empty folders and clutter files that may be left behind after moving the video files or temporary extracted files after copying
:idea: Please read the FAQ and How to Request Help.
Muddro
Posts: 33
Joined: 22 Mar 2014, 21:38

Re: Delete after extraction

Post by Muddro »

Thanks! Awesome work.
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Delete after extraction

Post by Achandab »

Just tried this and the script cleans the extracted folder after extr4acting but doesnt clean up the actual zip file. Is there a way to clean up the zip file as well?
User avatar
rednoah
The Source
Posts: 24037
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Delete after extraction

Post by rednoah »

Automated Media Center wrote:--def deleteAfterExtract=y Delete archives after extraction
Have you tried the deleteAfterExtract option?
:idea: Please read the FAQ and How to Request Help.
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Delete after extraction

Post by Achandab »

I'll give that a go. thanks!
Post Reply