qBittorent, run as external program newest version

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
znerken
Posts: 30
Joined: 15 Feb 2018, 23:26

qBittorent, run as external program newest version

Post by znerken »

Have anyone gotten the python script to work with qBittorent 4.1.1?

I have this, and it does not work after the qBittorent update.

Code: Select all

"D:/utorrent-postprocess.pyw" "%L" "" "%N" "multi" "" "%F"
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBittorent, run as external program newest version

Post by rednoah »

What are the values of all the variables? What does the log say?


:idea: Using pythonw means that you won't get console output, which means that you will never find out why it's not working.

1.
Use python and not pythonw if you want to see the python output.

2.
Use subprocess.run(command) instead of subprocess.run(command, creationflags=0x08000000) inside the python script if you want to see the filebot output.
:idea: Please read the FAQ and How to Request Help.
znerken
Posts: 30
Joined: 15 Feb 2018, 23:26

Re: qBittorent, run as external program newest version

Post by znerken »

rednoah wrote: 29 Jun 2018, 19:53 What are the values of all the variables? What does the log say?


:idea: Using pythonw means that you won't get console output, which means that you will never find out why it's not working.

1.
Use python and not pythonw if you want to see the python output.

2.
Use subprocess.run(command) instead of subprocess.run(command, creationflags=0x08000000) inside the python script if you want to see the filebot output.


Nothing wrong with Filebot here, it is Qbittorent who changed it, or rather reverted it to a earlier approach. Worked in a earlier version.

This is even taken directly from your Wiki: viewtopic.php?f=4&t=5157

Image
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: qBittorent, run as external program newest version

Post by rednoah »

Yes, but what exactly has changed? This looks good to me. %L nor %N nor %F has changed.

:?: What are the actual values of these variables?

:?: What is the exact command that is called?

:?: And how is it different from older / newer versions of qBT?


e.g. this is what an actual filebot command (as opposed to a template for a command) looks like:

Code: Select all

filebot -script fn:amc --output "D:/Organized Media" --log-file amc.log --action duplicate --conflict override -non-strict --def "ut_dir=D:\Media\Avatar" "ut_file=" "ut_kind=multi" "ut_title=Avatar" "ut_label=" "ut_state=5"
:idea: Please read the FAQ and How to Request Help.
Post Reply