Page 1 of 1
qBittorent, run as external program newest version
Posted: 29 Jun 2018, 19:18
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"
Re: qBittorent, run as external program newest version
Posted: 29 Jun 2018, 19:53
by rednoah
What are the values of all the variables? What does the log say?

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.
Re: qBittorent, run as external program newest version
Posted: 29 Jun 2018, 20:03
by znerken
rednoah wrote: ↑29 Jun 2018, 19:53
What are the values of all the variables? What does the log say?

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

Re: qBittorent, run as external program newest version
Posted: 29 Jun 2018, 20:30
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"