Cannot call Filebot script with qbittorrent running as a service

Support for Windows 10 users and the Microsoft Store package
Post Reply
TheRedMandrake
Posts: 2
Joined: 06 Jun 2019, 14:56

Cannot call Filebot script with qbittorrent running as a service

Post by TheRedMandrake » 06 Jun 2019, 15:24

Hi,

I am using the latest version of the Windows Store version of Filebot on Windows 10 Pro 64bit 1809.

I have set up my qBittorent 4.1.6 client to run as a service on my Windows PC (I am using NSSM, see here). I am accessing the client via the web interface. I have set the Log On account on this service to my own administrator account. Everything seems to work fine, except that I am unable to call a filebot script using the "run external program on torrent completion".

I have made a few tests, and it seems that the problem is not with qbittorrent in general, since I can call a script on torrent completion. It is only that the filebot command does not seem to work when I try running it this way. My guess is that there is some kind of an issue with permission due to the fact that filebot is a Windows Store app and not a standard third party app.

Here is the bat file I am trying to run:

Code: Select all

@echo off
@echo This is a test> D:\Users\Me\test.txt
filebot -script fn:amc --output "D:/Users/Me/Video/" --action hardlink --conflict skip -non-strict "D:/Users/Me/Downloads/Torrents/Filebot" --log-file "D:/Users/Me/Softwares/AppContent/Filebot/FilebotTorrents.log" --def movieFormat="/Films/{n} ({y})/{n} ({y}) - {tags}[{source'-'}{vf}]{[s3d]}{[hdr]}{[vc]}[{ac} {channels}]{'-'group}" seriesFormat="/Series/{n}/{'Season '+s}/{n} - {s00e00} - {t} - [{source'-'}{vf}]{[vc]}[{ac} {channels}]{'-'group}" excludeList="D:/Users/Me/Softwares/AppContent/Filebot/FilebotTorrents-exclude.txt" unsorted=y artwork=n clean=y skipExtract=y
Note that the first two commands works perfectly (a test.txt file is created in the D:\Users\Me folder). It is only the third command that is not working.
Also, note that the script works perfectly when it is called using a non-service instance of qbittorrent.

Do you have an idea how I can solve this issue?

I will happily provide more info if needed.
Thank you for your help!

UPDATE
I tried with the MSI installer (which I did not know existed) and was able to make it work.
The only thing now is that I do not have a licence for this version. I bought filebot on March 8 2018 on the Windows Store because I thought it was only available there (and maybe it was at the time, correct me if I am wrong). If I had known, I would rather have bought the universal licence...

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

Re: Cannot call Filebot script with qbittorrent running as a service

Post by rednoah » 06 Jun 2019, 19:32

Presumably, Windows Store apps and Windows Services run as different users with different security policies, so Windows is probably making sure one can't interact with the other. Kinda like how drag-n-drop doesn't work between applications running as different users. Or maybe it's just locked to the specific user who purchased the app, and Windows doesn't let other users use it since other users are gonna be running with different credentials.

I'm not aware of any workarounds, other than using classic Win32 executable instead of the UWP runner.

You may request a complimentary license:
viewtopic.php?f=8&t=9517

:idea: The universal license system was introduced Summer 2018 so the latest version was indeed only available on the Windows Store beginning of last year.
:idea: Please read the FAQ and How to Request Help.

TheRedMandrake
Posts: 2
Joined: 06 Jun 2019, 14:56

Re: Cannot call Filebot script with qbittorrent running as a service

Post by TheRedMandrake » 06 Jun 2019, 19:46

Thank you for your quick answer. For now, I will simply stick to running qBittorent in interactive mode, since it appears I have other applications which cannot run as a service (so that I am forced to log on anyway).

Thank you for your help and your work on this great app!

Synk556
Posts: 17
Joined: 02 Dec 2017, 23:06

Re: Cannot call Filebot script with qbittorrent running as a service

Post by Synk556 » 04 Jul 2019, 00:19

TheRedMandrake wrote:
06 Jun 2019, 15:24

UPDATE
I tried with the MSI installer (which I did not know existed) and was able to make it work.
The only thing now is that I do not have a licence for this version. I bought filebot on March 8 2018 on the Windows Store because I thought it was only available there (and maybe it was at the time, correct me if I am wrong). If I had known, I would rather have bought the universal licence...
Hi, can you tell me what the MSI installer is? Thank you.

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

Re: Cannot call Filebot script with qbittorrent running as a service

Post by rednoah » 04 Jul 2019, 03:13

The MSI installer is the Windows package that you and can download and double-click to install FileBot on your Windows computer:
https://www.filebot.net/download.html
:idea: Please read the FAQ and How to Request Help.

Post Reply