Page 1 of 1
Preventing Kodi being interrupted by download finishing
Posted: 12 Nov 2016, 18:35
by pietpara
Hello,
I was looking for anyone who might have a solution for the issue that when watching a movie using Kodi, while my utorrent is downloading, causes windows to switch to desktop when the movie has finished downloading and, I believe, utorrent spawns the cmd window..
I have read somewhere to use the /c on the cmd command as in
Code: Select all
cmd /c filebot.launcher -script fn:amc --output "M:\Organized Movies" --log-file amc.log --action copy --conflict override -non-strict --def music=y subtitles=es artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
but that has not helped. I don´t see the cmd window anymore, but Kodi still bombs out.
Is there any solution to this?
Thanks in advance!
Pietpara
Re: Preventing Kodi being interrupted by download finishing
Posted: 12 Nov 2016, 18:44
by rednoah
If you use the filebot.launcher.exe (Win32 GUI executable) then it won't (and can't) show a CMD window. Since FileBot won't open any windows there's nothing that could steal the focus.
If you execute cmd.exe then it will definitely open a new CMD window that'll steal the focus.
Re: Preventing Kodi being interrupted by download finishing
Posted: 19 Nov 2016, 20:25
by pietpara
Hi rednoah,
I added the cmd /c part after having that problem before and having read somewhere that placing cmd/c in front wold stop the cmd window from showing, which it did. But maybe, I don't remember, I did not use filebot.launcher before, just filebot.
So, I will try out the following on the next download:
Code: Select all
filebot.launcher -script fn:amc --output "M:\Organized Movies" --log-file amc.log --action copy --conflict override -non-strict --def music=y subtitles=es artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
I will let you know.
thanks
Pietpara
Re: Preventing Kodi being interrupted by download finishing
Posted: 19 Nov 2016, 22:06
by pietpara
Yes, that seems to work.
Re: Preventing Kodi being interrupted by download finishing
Posted: 29 Nov 2016, 18:30
by pietpara
Hello,
well, I was to quick in saying that it works. Yes, Kodi was not interrupted when I started a torrent and i finished.
But I found that it is because without the cmd /c part in front of the filebot.launcher command in utorrent "Run program when finished" the script does not execute. So it doen´t unpack anything.
How do I execute that script in utorrent without the cmd command, that causes the window interruption?
Thanks for the help
Re: Preventing Kodi being interrupted by download finishing
Posted: 30 Nov 2016, 11:52
by rednoah
Common Problems wrote:If you have PATH issues, and it almost always is PATH issues, try using the absolute path to the executable, e.g. "C:/Program Files/FileBot/filebot.exe" or /usr/local/bin/filebot
Have you tried this?
Re: Preventing Kodi being interrupted by download finishing
Posted: 04 Dec 2016, 17:32
by pietpara
Hello,
yes, I have, with no help..
This is my last tried cmd line in utorrent: and it does not result in an unpacked file in M:\Organiyed Movies.
Code: Select all
C:\Program Files\FileBot\filebot.launcher -script fn:amc --output "M:\Organized Movies" --log-file amc.log --action copy --conflict override -non-strict --def music=y subtitles=es artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
So, maybe a question to which I could not find an answer here so far... should one use filebot.launcher or jut filebot in utorrent?
I believe I started using filebot.launcher with the cmd /c in front, because of an advice I read somewhere about preventing kodi losing focus, when utorrent finishes a download. the ´/c´ being the option for the cmd window not to spawn. But that has not helped. cmd window does not spawn, but kodi still looses focus.
What else can I try?
thanks for any help!
Pietpara
Re: Preventing Kodi being interrupted by download finishing
Posted: 04 Dec 2016, 17:50
by rednoah
I wrote this:
Code: Select all
"C:/Program Files/FileBot/filebot.exe"
How did you come up with this? It's wrong twice (no quotes and the path doesn't even exist).
Code: Select all
C:\Program Files\FileBot\filebot.launcher
Please learn some cmdline basics:
viewtopic.php?f=4&t=1899
The
filebot and
filebot.launcher executables are both fine. The former will spawn a console window which might steal focus, the latter won't.
Re: Preventing Kodi being interrupted by download finishing
Posted: 07 Dec 2016, 09:17
by pietpara
Hi rednoah,
thank you for your comments.
I have now in utorrent the following:
Code: Select all
"C:/Program Files/FileBot/filebot.launcher.exe" -script fn:amc --output "M:\Organized Movies" --log-file amc.log --action copy --conflict override -non-strict --def music=y subtitles=es artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
You mentioned the path does not exist, but it does in my case. Filebot is in "C:\Program Files".
So, let me see what happens on next torrent during Kodi.
Many thanks!
Re: Preventing Kodi being interrupted by download finishing
Posted: 07 Dec 2016, 15:18
by rednoah
Yes.
This program exists:
Code: Select all
C:/Program Files/FileBot/filebot.launcher.exe
But you were calling this program, which doesn't:
@see
viewtopic.php?f=4&t=1899
Once you successfully call FileBot, it'll create logs, and if something is not working as expected, those logs will be the first thing you wanna have a look at.