Exclude specific QBittorrent categories

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
stian89
Posts: 8
Joined: 02 Jul 2016, 10:59

Exclude specific QBittorrent categories

Post by stian89 »

Hi!
I am currently using QBittorrent and i have a AMC Filebot-script running when the file is downloaded.

Shell: Select all

filebot -script fn:amc --output "\\XX/Downloads" --action copy --conflict override -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=n artwork=n clean=y plex=10.0.0.1:XX "seriesFormat=\\XX/Shows/{n}/Season {s}/{n} - {sxe} - {t}" "movieFormat=\\XX/Movies/{n} ({y})/{n.upperInitial().space('.')}.{y}.{vf}.{source}.{vc}{'-'+group}" "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
This runs on every media file I download. I am wondering if there is some simple way to avoid this script running for certain files by adding a Category to the Torrent in QB. I would attach the torrents to a Category called "ignore".
Is there any way to utlize this in the script to disable amc?
User avatar
rednoah
The Source
Posts: 23388
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude specific QBittorrent categories

Post by rednoah »

stian89 wrote: 11 Sep 2024, 15:32 I would attach the torrents to a Category called "ignore"
Yes, that'll work:
rednoah wrote: 01 Aug 2012, 13:04 You can (and should) force Movie / Series / Anime mode or force ignore files via labels, e.g. label as Movie to force Movie mode, Series to force TV Series mode, Anime to force Anime mode, or other to ignore all files.
:idea: --def ut_label=other and --def ut_label=ignore will work, among other label keywords:

Groovy: Select all

/games|book|other|ignore|unsorted/
:idea: Please read the FAQ and How to Request Help.
stian89
Posts: 8
Joined: 02 Jul 2016, 10:59

Re: Exclude specific QBittorrent categories

Post by stian89 »

Thanks for the response! So this would only work with pre-defined categories?
For instance: "tv-sonarr" category, would I be able to exclude this?

Code: Select all

filebot -script fn:amc --output "\\XX/Downloads" --action copy --conflict override -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=n artwork=n clean=y plex=10.0.0.1:XX "seriesFormat=\\XX/Shows/{n}/Season {s}/{n} - {sxe} - {t}" "movieFormat=\\XX/Movies/{n} ({y})/{n.upperInitial().space('.')}.{y}.{vf}.{source}.{vc}{'-'+group}" "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=tv-sonarr"
User avatar
rednoah
The Source
Posts: 23388
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude specific QBittorrent categories

Post by rednoah »

:idea: --def ut_label=tv-sonarr would force TV Mode due to keyword "tv".



:arrow: You can always have qBT call your own script which then calls filebot - or not - depending on some condition:

batch: Select all

cmd /c C:\qbt-postprocess.cmd "%L" "%N" "%F"

batch: Select all

@ECHO OFF

:: Input Parameters
set ARG_LABEL=%1
set ARG_NAME=%2
set ARG_FOLDER=%3

:: Configuration
set CONFIG_OUTPUT=%USERPROFILE%/Media

if not %ARG_LABEL% == "tv-sonarr" (
  filebot -script fn:amc --output %CONFIG_OUTPUT% --action duplicate --conflict skip -non-strict --log-file amc.log --def skipExtract=y unsorted=y music=y artwork=y excludeList=excludes.txt ut_label=%ARG_LABEL% ut_title=%ARG_NAME% ut_kind=multi ut_dir=%ARG_FOLDER%
)
:idea: Please read the FAQ and How to Request Help.
Post Reply