Script NOT Deleting Temporarily Extracted Files

Any questions? Need some help?
Post Reply
swiftwitchy
Posts: 5
Joined: 26 Jan 2016, 02:43

Script NOT Deleting Temporarily Extracted Files

Post by swiftwitchy »

The filebot program / AMC script is amazing and I just started using the latest version: 4.6.1.
Everything seems to be working fine, however, it is NOT deleting the temporarily extracted Files.


( I do apologize if this is some oversight of mine and the solution is obvious... >< )

The Setup is simple. I have two Drives that are used in my setup.

E:\ (Used for Downloads)
G:\ (Saved / organized movies and TV shows for Plex)

Problem Details

After the media downloads in qbitorrent, it calls my script which extracts the content found with qbittorent variables (on Drive E), renames it and all that good staff while copying it to G:\PLEX AUTO Folder. It then calls Plex update. When I look into the download folder for this media, the temporarily extracted data has not been deleted.
NOTE: I do not want to delete the archives/original files, I just don't want to keep the temporarily extracted content on drive E.
NOTE: I need to use this copy feature opposed to possible move action as some of my downloaded media/original files is not in archives (just pure video) and again, i do not want to delete the original files.

Assumption: "--def clean=y" is not working properly or I am not using it right.


My Script

Code: Select all

filebot -script fn:amc --output "G:/PLEX AUTO" --action copy -non-strict  --def unsorted=y [b]--def clean=y[/b] --action duplicate --conflict auto --def plex=127.0.0.1:(<MYTOKENHERE>) "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L" --log-file amc.log --def excludeList=amc.txt

LOG

Code: Select all

Run script [fn:amc] at [Mon Jan 25 21:22:37 EST 2016]
Parameter: unsorted = y
Parameter: clean = y
Parameter: plex = 127.0.0.1:<MYTOKENHERE>
Parameter: ut_dir = E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS
Parameter: ut_kind = multi
Parameter: ut_title = JustATVShow.S05E04.720p.HDTV.x264-KILLERS
Parameter: ut_label = 
Parameter: excludeList = amc.txt
Using excludes: G:\PLEX AUTO\amc.txt (75)
Read archive [JustATVShow.S05E04.720p.hdtv.x264-killers.rar] and extract to [E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers\JustATVShow.S05E04.720p.HDTV.x264-KILLERS]
Extracting files [E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.HDTV.x264-KILLERS.mkv]
Input: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.HDTV.x264-KILLERS.mkv
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.nfo
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.r00
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.r01
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.r02
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.r03
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.r04
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.r05
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.r06
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.r07
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers.sfv
Exclude: E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\Sample\sample-JustATVShow.S05E04.720p.hdtv.x264-killers.mkv
Group: [tvs:JustATVShow] => [JustATVShow.S05E04.720p.HDTV.x264-KILLERS.mkv]
Jan 25, 2016 9:23:25 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Rename episodes using [TheTVDB]
Auto-detected query: [JustATVShow]
Fetching episode data for [JustATVShow]
[DUPLICATE] Rename [E:\Torrent Content\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.hdtv.x264-killers\JustATVShow.S05E04.720p.HDTV.x264-KILLERS\JustATVShow.S05E04.720p.HDTV.x264-KILLERS.mkv] to [G:\PLEX AUTO\TV Shows\JustATVShow\Season 14\JustATVShow - S05E04 - Help me.mkv]
Processed 1 files
Notify Plex: 127.0.0.1
GET: http://127.0.0.1:32400/library/sections/all/refresh?X-Plex-Token=<MYTOKENHERE>
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script NOT Deleting Temporarily Extracted Files

Post by rednoah »

1.
If it was --action copy --def clean=y then it'd would work just fine.

You did a good job at confusing me by adding another --action duplicate, so it seems --action duplicate --def clean=y doesn't seem to work right now. That can be fixed.

If you copy files from one drive to another, then --action copy is equivalent to --action duplicate.


2.
Did you use FileBot-setup.exe or the MSI to install FileBot? That should make this warning go away:

Code: Select all

Jan 25, 2016 9:23:25 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
:idea: Please read the FAQ and How to Request Help.
swiftwitchy
Posts: 5
Joined: 26 Jan 2016, 02:43

Re: Script NOT Deleting Temporarily Extracted Files

Post by swiftwitchy »

1. I have updated my script. I misinterpreted the -action duplicate for something else... (My fault for hastily patching things together).

Code: Select all

filebot -script fn:amc --output "G:/PLEX AUTO" --action copy -non-strict --conflict auto --def unsorted=y --def clean=y --def plex=127.0.0.1:dgkrT8JYzyBFsKpHha4g "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L" --log-file amc.log --def excludeList=amc.txt
This works Perfect for me now. Thanks! You are a boss.

BTW, what is the intended difference between --action duplicate and --action copy?


2. I installed the application using FileBot-setup.exe 64 bit. Also using the Java 64bit.
Should I bother to try and remove this warning or can it be safely ignored?
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script NOT Deleting Temporarily Extracted Files

Post by rednoah »

1.
--action duplicate mans hardlink if possible, copy otherwise.

2.
You can ignore these warnings. If you start FileBot as Administrator once, it'll go away.
:idea: Please read the FAQ and How to Request Help.
Post Reply