qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.04k stars 3.96k forks source link

[Suggestion] Run external program for torrents only Labeled XYZ #5226

Open Xelbair opened 8 years ago

Xelbair commented 8 years ago

It would be pretty nice, and very useful, to add option to run external program for completed downloads only under selected label.

For example - i have setup which displays recently downloaded(automated via RSS - automatically added to label too) shows on my desktop if I add to downloads... lets say - fedora iso and it finishes it will be added to To Watch list too.

i could theoretically modify my script, but it would be way simpler, and elegant if i could run it only for labelled torrents. otherwise i would need to add either huge list of exceptions to script... or manually edit script to add entries only related to the shows(which basically doubles the work to set it up)

re-l124c41plus commented 8 years ago

Which version of qBT are you on? This should already be achievable pretty easily. You can pass the label to the external program with the %L parameter: 2016-06-12_21 39 22 I know it says category for the %L parameter but that seems to be a minor inconsistency because labels seem to be called categories now (in the current git version everything is consistent again).

By passing the label/category to the program you are flexible to execute the program or not or even choose to do something different for every label. If the program you want to execute isn't something you can easily modify to accept this parameter (e.g. unrar) I suggest you write a simple wrapper script which checks the label (and other parameters) and then either executes the program you wish or not.

foxi69 commented 4 years ago

How i can pause the torrents what added to "Category1" after torrent completion. Just only specified category.