FileBot processes files when custom label is given in qBT

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Pintu
Posts: 3
Joined: 17 Nov 2017, 11:12

FileBot processes files when custom label is given in qBT

Post by Pintu »

Thank you for your great program, script and support. I have trouble getting FileBot not to process files when a custom label is given. That is, sonarr adds files to qBT with the label 'sonarr', and these should not be processed by FileBot.

I am using the following call:

Code: Select all

filebot -script fn:amc --output "E:/" --action move --def clean=y --conflict auto -non-strict --log-file "E:/downloads/amc.log" --def unsorted=y music=y --def plex=127.0.0.1:1234 --def pushbullet=1234 "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L" --def subtitles=en,de
It was my understanding that when ut_label is specified, FileBot only processes downloads with label Series, Movies, Anime etc. I can see that the correct label is given in qBT and the log file:

Code: Select all

17/11/2017 11:23 - Torrent: a_download, running external program, command: filebot -script fn:amc --output "E:/" --action move --def clean=y --conflict auto -non-strict --log-file "E:/downloads/amc.log" --def unsorted=y music=y --def plex=127.0.0.1:1234 --def pushbullet=1234 "ut_dir=E:\Downloads\done\a_download" "ut_kind=multi" "ut_title=a_download" "ut_label=sonarr" --def subtitles=en,de

Code: Select all

Run script [fn:amc] at [Fri Nov 17 09:07:58 GMT 2017]
Parameter: clean = y
Parameter: unsorted = y
Parameter: music = y
Parameter: plex = *****
Parameter: pushbullet = *****
Parameter: ut_dir = E:\Downloads\done\a_download
Parameter: ut_kind = multi
Parameter: ut_title = a_download
Parameter: ut_label = sonarr
Parameter: subtitles = en,de
Input: E:\Downloads\done\a_download.mkv
Group: [tvs:a_download] => [a_download.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: E:\Downloads\done\a_download
TBS[rarbg]\a_download.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [a_download]
Fetching episode data for [a_download]
[MOVE] From [E:\Downloads\done\a_download.mkv] to [E:\TV Shows\a_download.mkv]
Processed 1 files
Notify Plex: [host:127.0.0.1, 1234]
GET: http://127.0.0.1:32400/library/sections/all/refresh?X-Plex-Token=1234
Sending PushBullet report
Clean clutter files and empty folders
Delete E:\Downloads\done\a_download.mkv
Done ヾ(@⌒ー⌒@)ノ
And sysinfo:

Code: Select all

filebot -script fn:sysinfo
FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.93
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-10-30 (r508)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 1.8.0_152
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 20 MB Used Memory
OS: Windows 7 (amd64)
Package: MSI
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot processes files when custom label is given in qBT

Post by rednoah »

The ignore labels are hard-coded to the following values:

Code: Select all

games|ebook|other|ignore
sonarr is not one of them. Can you auto-label them ignore instead?
:idea: Please read the FAQ and How to Request Help.
Pintu
Posts: 3
Joined: 17 Nov 2017, 11:12

Re: FileBot processes files when custom label is given in qBT

Post by Pintu »

Yes, I can use ignore, but this also moves/processes files if unsorted=y is defined. It therefore works the same as label other. Is that intended? I thought other-->unsorted, and ignore-->really do nothing.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot processes files when custom label is given in qBT

Post by rednoah »

Yes, all the aforementioned labels have the exact same effect. There is no difference between ignore and other. The only way to do absolutely nothing is not calling the amc script. There is no built-in support for doing nothing after being called.

I recommend creating a wrapper script that decides whether to call the amc script or not according to your your needs. You could use the utorrent-postprocess.pyw python script as a starting point for that. Basic coding skills required.
:idea: Please read the FAQ and How to Request Help.
Pintu
Posts: 3
Joined: 17 Nov 2017, 11:12

Re: FileBot processes files when custom label is given in qBT

Post by Pintu »

Okay, thank you for the clarification. I just use other/ignore and disable processing of unsorted files.
Post Reply