qBitorrent - Deleting

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
booboo1
Posts: 6
Joined: 07 Oct 2016, 10:24

qBitorrent - Deleting

Post by booboo1 »

Hello,
I am using the generic qBitorrent script with the artwork and music removed:

Code: Select all

filebot -script fn:amc --output "C:/Media" --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
I have a couple of questions.
1. I would like the files to be deleted from the download folder So the RAR (If it is rarred), The Folder and any associated files that downloaded within the torrent.
I have tried both the below, also tried without the -- as well as removing the --def nothing works.

I may not be placing it in the right area.

Code: Select all

--def deleteAfterExtract=y Delete archives after extraction
--def clean=y Automatically remove empty folders and clutter files that may be left behind after moving the video files, or temporary extracted files after copying
2. If the Torrent starts seeding will that stop the delete or clean script part from running.

The rest of the script is going well.
The only other thing id probably ask is do i need the amc.log i dont ever check it but i see it generates.

I have looked on the FAQ and on here on the forums but i cant pin point the above.
Let me know :)
Last edited by booboo1 on 07 Oct 2016, 12:51, edited 2 times in total.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBitorrent - Deleting

Post by rednoah »

1.
Check the log. Post the log. Evidently, you need the log. ;)

2.
The amc script does not support managing your downloads in no way whatsoever. It's just a command-line tool. Windows will probably prevent FileBot from deleting any files that are in use by other programs.
:idea: Please read the FAQ and How to Request Help.
booboo1
Posts: 6
Joined: 07 Oct 2016, 10:24

Re: qBitorrent - Deleting

Post by booboo1 »

Code: Select all

Run script [fn:amc] at [Thu Oct 06 15:35:13 AEDT 2016]
Parameter: excludeList = amc.excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_dir = C:\Media\Arrow.S05E01.720p.HDTV.X264-DIMENSION
Parameter: ut_kind = multi
Parameter: ut_title = Arrow.S05E01.720p.HDTV.X264-DIMENSION
Parameter: ut_label = 
Creating excludes: C:\Media\amc.excludes
Failed to load 7z-JBinding: C:\Program Files\FileBot\7-Zip-JBinding.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
Run script [fn:amc] at [Fri Oct 07 21:23:56 AEDT 2016]
Parameter: excludeList = amc.excludes
Parameter: unsorted = y
Parameter: ut_dir = C:\Media\Westworld.1973.480p.BluRay.x264-mSD
Parameter: ut_kind = multi
Parameter: ut_title = Westworld.1973.480p.BluRay.x264-mSD
Parameter: ut_label = 
Using excludes: C:\Media\amc.excludes (108)
Input: C:\Media\Westworld.1973.480p.BluRay.x264-mSD\Westworld.1973.480p.BluRay.x264-mSD.mkv
Exclude: C:\Media\Westworld.1973.480p.BluRay.x264-mSD\Westworld.1973.480p.BluRay.x264-mSD.nfo
Group: [mov:westworld 1973] => [Westworld.1973.480p.BluRay.x264-mSD.mkv]
Oct 07, 2016 9:23:59 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 movies using [TheMovieDB]
Auto-detect movie from context: [C:\Media\Westworld.1973.480p.BluRay.x264-mSD\Westworld.1973.480p.BluRay.x264-mSD.mkv]
[DUPLICATE] Rename [C:\Media\Westworld.1973.480p.BluRay.x264-mSD\Westworld.1973.480p.BluRay.x264-mSD.mkv] to [C:\Media\Movies\Westworld (1973)\Westworld (1973).mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
booboo1
Posts: 6
Joined: 07 Oct 2016, 10:24

Re: qBitorrent - Deleting

Post by booboo1 »

So would there be a way then to force it to delete somehow?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBitorrent - Deleting

Post by rednoah »

1.
You're using 32-bit Java. Don't use 32-bit Java. See FAQ.


2.
According to the logs it's not even trying to delete anything. What files should be deleted? The movie file? You're explicitly setting --action duplicate so it'll duplicate files (i.e. not delete anything).

You could try --action move but that's probably not gonna work because you're using Windows and Windows doesn't allow you to move files that are being used by another process.
:idea: Please read the FAQ and How to Request Help.
booboo1
Posts: 6
Joined: 07 Oct 2016, 10:24

Re: qBitorrent - Deleting

Post by booboo1 »

I am using Java 8 Update 101 (64 Bit).
I am unsure why it is saying i am using 32 Bit Java

I have now removed this: --action duplicate

can i ask with these: --def deleteAfterExtract=y and --def clean=y do i need the --def part or do i remove the def part because the current code doesnt utilise def except once:

filebot -script fn:amc --output "C:/Media" --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBitorrent - Deleting

Post by rednoah »

1.
booboo1 wrote:I am unsure why it is saying i am using 32 Bit Java
It's because you are using 32-bit Java. Check filebot -script fn:sysinfo output.


2.
Script Options work like this:

Code: Select all

--def a=1 --def b=2 --def c=3
OR

Code: Select all

--def a=1 b=2 c=3
BUT NOT JUST:

Code: Select all

a=1
:idea: Please read the FAQ and How to Request Help.
booboo1
Posts: 6
Joined: 07 Oct 2016, 10:24

Re: qBitorrent - Deleting

Post by booboo1 »

Thanks,
So trying that i got it working, 6 test files all moved to the corect folder and then deleted the remnants:

## KEEPS DOWNLOADED RAR FILES AND FOLDERS ##
filebot -script fn:amc --output "C:/Media" --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"

## DELETES DOWNLOADED RAR FILES AND FOLDERS ##
filebot -script fn:amc --output "C:/Media" --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes --def clean=y unsorted=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"

I downloaded something that isnt in tvdb etc and it put it into the Unsorted so that was great.
But for some reason the 8 test files after that didnt delete the remnants but moved everything to the correct folders.
I dont know why that is, any idea?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBitorrent - Deleting

Post by rednoah »

What does the log say?

:!: I have an idea~ amc.log will tell you exactly what's happening~
:idea: Please read the FAQ and How to Request Help.
Post Reply