Page 6 of 6
Re: Need setup help to auto-extract torrent files
Posted: Wed Jul 20, 2016 12:50 am
by dragons4life
wouldn't 7zip be better for this? with much lower performance usage?
Re: Need setup help to auto-extract torrent files
Posted: Thu Jul 21, 2016 6:16 pm
by KitKat
[quote="tekko"]
In 3.3.5, try the following:
"D:\script.bat "%F" "%L""
[/quote]
That is non-functional in 3.3.6 this however works:
D:\script.bat "%F" "%L"
If the file contains spaces you must do this:
"D:\Path to File\Script.bat" "%F" "%L"
What qbt actually does is prefix your command with "cmd /c"
Which creates a command like: cmd /c "stuff you enter in the field goes here, its all an argument"
eg:
I enter "C:\path to\file.bat" "%F" "%L" in qbt's input field and it makes the following command:
cmd /c "C:\path to\file.bat" "%F" "%L"
[quote="dragons4life"]
wouldn't 7zip be better for this? with much lower performance usage?
[/quote]
Irrelevant frankly, the problem was qbittorent not executing his script and i havent compared winrar/7zips performance myself so i cant disagree or agree with that statement.
Re: Need setup help to auto-extract torrent files
Posted: Thu Jul 21, 2016 6:51 pm
by tekko
https://github.com/qbittorrent/qBittorrent/issues/5439
They fixed it in 3.3.6.
qbt now adds cmd /c " ... "
meaning ... cmd /c " [whatever in that box in options] "
so... for your example, it's actually...
cmd /c ""C:\path to\file.bat" "%F" "%L""
Re: Need setup help to auto-extract torrent files
Posted: Sat Jan 07, 2017 7:57 am
by Galana
Now running 3.3.10, and having issues getting a script to trigger. I've tried:
I:\qBittorrent\script.bat "%F"
"I:\qBittorrent\script.bat" "%F"
cmd/c "I:\qBittorrent\script.bat" "%F"
and none of them trigger the script on completion.
.......................... Ok, hold on... The middle one IS working - it just isn't popping up the visual screen indicating what's happening. How can I force the CMD box to open?
Re: Need setup help to auto-extract torrent files
Posted: Sat Jun 03, 2017 6:26 am
by Galana
This is broken once more in 3.3.13
Re: Need setup help to auto-extract torrent files
Posted: Fri Aug 18, 2017 12:54 am
by AnthonyB
I'm another recent uTorrent convert and am struggling with auto-extraction of torrent files. From the comments in this thread and the open issues I can see on GitHub I'm wanting to verify whether there is a bug in qBt 3.3.15 and the v3.4.0beta_20170807 beta (i.e. I should stop troubleshooting because it is actually broken). I'm running Windows 10 x64 and currently the qBt v3.4.0beta_20170807 beta.
GitHub open issues:
Running external program on torrent completion. Unrar/extract bug #5256
https://github.com/qbittorrent/qBittorrent/issues/5256
Run external program on torrent completion - problems/not working in 3.3.5 #5497
https://github.com/qbittorrent/qBittorrent/issues/5497
There are a number of other open issues but they seem to refer to older versions or possibly are user issues.
The qBt log file shows clean execution and if I copy and paste the command-line from the log (after converting the "/" to "\" .. is that a separate bug in itself?) it works fine.
My command line to execute is
Code: Select all
""C:\Program Files\WinRAR\WinRAR.exe"" x -r -inul -ibck "%F\*.r*" "%F\"
I have also tried the suggested workaround of enabling the option "Keep incomplete torrents in: D:\Downloads\temp\" but it did not change the outcome for me (race condition since it seemed to work for others?)
Related bugs/issues I wanted to validate before raising a formal issue are:
1. QbT is converting "\" to "/" in the executable command-line, Keep incomplete torrents in, etc. fields - should it be? Is this causing an issue?
E.g. In the Command-line to execute I have
Code: Select all
"C:\Program Files\WinRAR\WinRAR.exe"
but in the qBt log it says
Code: Select all
"running external program, command: ""C:/Program Files/WinRAR/WinRAR.exe""
If I use the "Browse" button to browse to the file/folder and select it (e.g. C:\Program Files\WinRAR\WinRAR.exe), it will display it in the field as C:/Program Files/WinRAR/WinRAR.exe
2. qBt has some path validation logic in various fields such as the run external program, Keep incomplete torrents in, etc. This field validation always throws an error and the error is incorrect.
E.g. In the "Keep incomplete torrents in" field I have
. If I mouse over the yellow-triangle symbol indicating field validation error the error is
If I launch qBt with "Run as Administrator" then this validation error does not show.
Re: Need setup help to auto-extract torrent files
Posted: Tue Sep 25, 2018 5:01 pm
by Galana
Sorry to resurrect an old thread, but it's a continuance of this topic. The script has been working wonderfully, on two setups, for about a year... Then over the last two days (before I did the 4.1.3 version upgrade), it stopped... well, it executed about half, but incorrectly, and didn't complete... Whatever, stuff happens, and I now have it resolved (not sure exactly how, as I didn't change anything)
What I'm asking for is a toggle-switch in the Script section that will allow a script to "Run Invisible (default)" as it does now, and to "Run Visible (for debugging purposes)". I'm sure that anyone who uses scripts would appreciate this option, as debugging a script that you can't see run is exceedingly difficult.
Also, since I haven't posted it in a while, and the script DOES work, here's the working copy (R=Download Drive (RAM Disk), K=Kodi Drive, Q=Long-Term Seeding Drive):
:Part1
if exist "R:\TorTemp\%~nx1\*.r*" ("C:\Program Files\WinRAR\WinRAR.exe" x -ibck -inul "R:\TorTemp\%~nx1\*.r*" "K:\") &goto:Part2
if exist "R:\TorTemp\%~nx1\%~nx1.mkv" (copy /v "R:\TorTemp\%~nx1\%~nx1.mkv" "K:\") &goto:Part2
if exist "R:\TorTemp\%~nx1\%~nx1.mp4" (copy /v "R:\TorTemp\%~nx1\%~nx1.mp4" "K:\") &goto:Part2
if exist "R:\TorTemp\%~n1.mkv" (copy /v "R:\TorTemp\%~n1.mkv" "K:\") &goto:Part2
if exist "R:\TorTemp\%~n1.mp4" (copy /v "R:\TorTemp\%~n1.mp4" "K:\") &goto:Part2
if exist "R:\TorTemp\%~nx1\*" (
md "K:\%~nx1"
copy /v "R:\TorTemp\%~nx1\*" "K:\%~nx1"
goto:Part2)
:Part2
if exist "R:\TorTemp\%~nx1\*" (
md "Q:\Completed\%~nx1"
copy /v "R:\TorTemp\%~nx1\*" "Q:\Completed\%~nx1\"
goto:Part3)
:Part3
move /y "R:\TorTemp\%~nx1.torrent" "Q:\Torrents\"
exit