[AMC] Waiting for seeding to finish - Move not Copy
Posted: 24 Jan 2014, 00:25
Hi,
Whenever I call AMC from utorrent after download - copy works fine, Move does not, I assume from the seeding locking the file.
So I thought I would introduce a delay into the script to give time for utorrent to finish and release the file, I've tried a few various things with no luck.
Introducing a sleep command into the .groovy is no good, the script still tries to lock the file as soon as it is called.
So I tried to put the filebot -script fn:amc etc etc , into a batch file with a TIMEOUT DOS command in front for a specified time.
Problem is the %D %K and so on in the utorrent parameters, how do I then pass those along to the batch file? they seem to not be passed along correctly.
I do have log files, but I've tried so many various permutations, at this point, the log files would show 20 different outputs, and I'm wondering if theres a more general solution?
so in the utorrent Run Program field I put something like
and then in the Bat file I put;
I read somewhere after a google search that the utorrent commands such as %K etc are converted to numbers when passed to a batch file, in order of when they were called?
so I replaced them with numbers, and it jumbled up with sometimes the title being listed fine, but ut_file coming back as %F and that seemed a dead end.
I do hope I'm missing something very stupid and obvious, I have googled and searched for hours, safe to say scripting and coding of any sort is alien to me....
Perhaps I'm going about it the wrong way completely, I think I probably am, essentially, I just want the filebot script to wait until the seeding is complete, and I've probably tried to go about it in a very roundabout way.
Any Ideas?
Whenever I call AMC from utorrent after download - copy works fine, Move does not, I assume from the seeding locking the file.
So I thought I would introduce a delay into the script to give time for utorrent to finish and release the file, I've tried a few various things with no luck.
Introducing a sleep command into the .groovy is no good, the script still tries to lock the file as soon as it is called.
So I tried to put the filebot -script fn:amc etc etc , into a batch file with a TIMEOUT DOS command in front for a specified time.
Problem is the %D %K and so on in the utorrent parameters, how do I then pass those along to the batch file? they seem to not be passed along correctly.
I do have log files, but I've tried so many various permutations, at this point, the log files would show 20 different outputs, and I'm wondering if theres a more general solution?
so in the utorrent Run Program field I put something like
Code: Select all
D:\utorrent.bat "%L" "%S" "%N" "%K" "%F" "%D"
Code: Select all
TIMEOUT 90
filebot -script fn:amc --output "F:/video/Categories" --log-file amc.log --action move --conflict override -non-strict --def music=y --def xbmc=xbmc subtitles=en artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
so I replaced them with numbers, and it jumbled up with sometimes the title being listed fine, but ut_file coming back as %F and that seemed a dead end.
I do hope I'm missing something very stupid and obvious, I have googled and searched for hours, safe to say scripting and coding of any sort is alien to me....
Perhaps I'm going about it the wrong way completely, I think I probably am, essentially, I just want the filebot script to wait until the seeding is complete, and I've probably tried to go about it in a very roundabout way.
Any Ideas?