See my bug report here.Ī quick summary of the post, just in case that post gets deleted: you have to set the command in "Run this program when a torrent changes state:", add a %S parameter and check that %S = 11Ĥ) Just a tip from my attempt at doing something very similar: when you set the variables from the arguments, add a tilde (%~1 instead of %1). It runs the program as downloading reaches 100%, but while uTorrent is still either moving the file or seeding. To change this behavior, go to Preferences / Advanced and set bt.read_only_on_complete to falseģ) you will still be foiled because "Run this program when a torrent finishes" doesn't really do what it says. verify that these settings aren't doing the file moving.Ģ) uTorrent locks the files on completion so that seeding can continue. Preferences / Directories has an option to move downloads when completed. For those who wish to see the code with line numbers: ġ) Likely, your script isn't moving the files. IF EXIST %fromdir%\*.nfo xcopy %fromdir%\*.nfo %todir% /S /I /YĪlso, for some reason, on line 39 nothing prints to the log. IF EXIST %fromdir%\subtitles xcopy %fromdir%\subtitles %todir% /S /I /YĬall %winrar% x %fromdir%\*.rar *.* %todir% -IBCK -ilog"%todir%\RarErrors.log" IF EXIST %fromdir%\subs xcopy %fromdir%\subs %todir% /S /I /Y Rem Requires WinRar installed to c:\Program files Xcopy %fromdir%\%filename% %todir%\ /S /YĮcho Copy all mkvs from %fromdir% and subdirs to %todir%Įcho Extracts all rars in %fromdir% to %todir%. Rem Copies single file from fromdir to todirĮcho Copy %filename% from %fromdir% to %todir% Check for rars first in case there is a sample.mkv, then we want the rarsĮcho Copy all contents of %fromdir% to %todir% Rem If there are rar files in the folder, extract them. Set todir=%savepartition%\%label_prefix%\%label_suffix% Set todir=%savepartition%\Unsorted\_%name% Rem Double underscores so the folders are easier to spot (listed on top in explorer) Rem Has a sub label so split into prefix and suffix so we can process properly laterįor /f "tokens=1,2 delims=\ " %%a in ("%label%") do set label_prefix=%%a&set label_suffix=%%bĮcho %date% at %time%: Handling %label% torrent %name% > %handledlog% If x%label:\=%=x%label% goto skipsublabel Rem Check if the label has a sub label by searching for \ Set errorlog="F:\Torrent Scripts\logs\ErrorLog.txt"Įcho Input: %fromdir% %name% %label% %kind% %filename% Set handledlog="F:\Torrent Scripts\logs\handled_torrents.txt" Set torrentlog="F:\Torrent Scripts\logs\torrentlog.txt" Set winrar="C:\Program Files (x86)\WinRAR\WinRAR.exe" Set savepartition="F:\Completed Torrents" Rem Parameter usage: fromdir torrent-name label kind Instead of moving into F:\Completed Torrents\Music, it just moves into F:\Completed Torrents.Ĭan someone please point out what I'm missing because I've looked through it thrice already and it's driving me crazy. When it gets to the point at :copyfile, it won't move it into the correct directory. For testing, I was downloading a song with the label of Music. How it is supposed to work is once a torrent has finished downloading, it runs the script and grabs the Label on the torrent. I wrote myself a script based off another one that I found and I'm having trouble figuring out why it's not working.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |