[HOWTO] Semi-Automated Download Mediacenter...
Posted: 18 Jan 2013, 10:27
Howto Semi-Automate Torrent Download to XBMC using Filebot
After running this setup for a few days its not perfect. At the moment im experiencing some problems that the script will not finish completely because of files that need to be deleted are in use either by windows or xbmc. The script will hang until the pc is reboot. I do not support this at the moment .Im looking to create a new way. Please use at your own risk !!!!
#############################################################################
GOAL
The goal is to achieve a semi-automated download with uTorrent and XBMC.
Q: What does this mean?
A:
This was tested on Windows 7 64 Bit Ultimate, it may
result different in 32bit or other windows versions!
Q: What do we need.
A:
Q: What needs to be done? (a lot)
A:
First step:
NOTE: I will use e.g.: Movies_Folder instead of C:\Media\Films\,
So you can input your own folder structure here.
3. Install all programs and apps listed above with the normal settings.
4. Setup uTorrent See the image and change all directory's marked red to you folder structure.
5. Creating Scripts and batch files
The first script is actually a filebot script created by rednoah (U ROCK!)
In my case the usual script didn't work with the uTorrent %D string and so on.
Thats why I created my own script and needed the 32bit version of java.(Been working 3 days on it).
First Create a batch file and name it sorting.cmd
You can do this by right-click on a empty space inside windows explorer
and selecting NEW->TextDocument.
Then edit the textfile by right-click on it and select edit.
Inside this file put the following commands:
As you can see, the filebot script will be started from within a cmd batch file.
NOTE: Change all the folders to your own folders created at the beginning.
In my case C:\Media\Downloads\Compleet\ is the Sorting_Folder
And so on...
Short explanation of the used commands: Completely removes all subdirs and files
is used to create a folder
is used to copy all folders and files to a other location.
Save file as -> sorting.cmd
If it is still a txt file then rename it to sorting.cmd.
If that doesn't work follow this tutorial.
After that is done place te file inside the scriptFiles_Folder
In my case C:\Media\Scripts\Files\sorting.cmd
6. Download Invoke.vbs here
And place invoke.vbs into scriptsFiles_folder
In my case C:\Media\Scripts\Files\sorting.cmd
7. Setting Run commands in uTorrent Settings Use the following code and put it in the run window of uTorrent:
Again, use the correct folders here! This is an example!
8. Setting up Download to Sorting Completed
You have now completed the biggest part.
This is it for now, if more people need help with setting up XBMC please let me know and i'll update this howto with that.
If everything has gone correctly you can now download a .torrent file and place it inside the Downloads_folder
When download is completed uTorrent will put the downloaded file into the Move_Folder
Then uTorrent will start the created script.
The script will copy all files from the Move_Folder to the Sorting_Folder
Then Filebot will sort the files and place them in the correct MOVIE/TV-Show folder.
The rest of de cmd batch file will clean the folders so they won't get cluttered.
Thats all! If You liked my Tutorial please donate to Rednoah! He made this possible!
After running this setup for a few days its not perfect. At the moment im experiencing some problems that the script will not finish completely because of files that need to be deleted are in use either by windows or xbmc. The script will hang until the pc is reboot. I do not support this at the moment .Im looking to create a new way. Please use at your own risk !!!!
#############################################################################
GOAL
The goal is to achieve a semi-automated download with uTorrent and XBMC.
Q: What does this mean?
A:
- Step 1. You put a .torrent file into a folder
Step 2. uTorrent auto downloads the file
Step 3. When torrent completes uTorrent starts a script.
Step 4. Script will sort out what type of dowload it is
(Movie or TV-Show).
Step 5. Script will rename and move files to correct folders
for use of XBMC(specified)
Step 6. Script will Clean up directory's (uTorrent cannot
seed the file after script is run)
Step 7. Script will put a log into a directory (specified)
Step 8. On next re-run of the script, the script will
auto-remove the last log-file.
This was tested on Windows 7 64 Bit Ultimate, it may
result different in 32bit or other windows versions!
Q: What do we need.
A:
- - Windows 7 Ultimate 64bit
- Java 7 Upd 11 32 Bit (= Needed for Filebot)
- Java 7 Upd 11 64 Bit (= Needed for Filebot)
- XBMC 11.0 (Eden) (Mediacenter APP)
- Filebot 3.2 (Best Renaming/Sorting app ever!)
- uTorrent 3.2.3. (Torrent Client Downloader)
Q: What needs to be done? (a lot)

A:
First step:
- 1. Think about your folder structure, you'll need the following folders:
- Movies_Folder (Mine is called C:\Media\Films\) (XBMC will be reading/playing from here)
- TVShow_Folder (Mine is called C:\Media\Series\)(XBMC will be reading/playing from here)
- Downloads_Folder (Mine is called c:\Media\Downloads\torrents\)(.torrent file for download here)
- Move_Folder (Mine is called c:\Media\Downloads\Temp\)(uTorrent store folder)
- Sorting_Folder (Mine is called c:\Media\Downloads\Compleet\)(Sorting folder for filebot)
- FinishedTorrent_Folder (Mine is called c:\Media\Downloads\Compleet\ttemp\)(.torrent completed)
- ScriptFiles_Folder (Mine is called c:\Media\Scripts\Files\)
- ScriptLog_Folder (Mine is called c:\Media\Scripts\Log\)
- Root_Folder (Mine is called c:\Media\)
NOTE: I will use e.g.: Movies_Folder instead of C:\Media\Films\,
So you can input your own folder structure here.
3. Install all programs and apps listed above with the normal settings.
4. Setup uTorrent See the image and change all directory's marked red to you folder structure.
5. Creating Scripts and batch files
The first script is actually a filebot script created by rednoah (U ROCK!)
In my case the usual script didn't work with the uTorrent %D string and so on.
Thats why I created my own script and needed the 32bit version of java.(Been working 3 days on it).
First Create a batch file and name it sorting.cmd
You can do this by right-click on a empty space inside windows explorer
and selecting NEW->TextDocument.
Then edit the textfile by right-click on it and select edit.
Inside this file put the following commands:
Code: Select all
rmdir /Q /S c:\Media\Downloads\Compleet
md c:\Media\Downloads\Compleet\
md c:\Media\Downloads\Compleet\ttemp\
xcopy c:\Media\Downloads\Temp\*.* c:\Media\Downloads\Compleet /s /q /c /y /e
filebot -script fn:utorrent-postprocess "c:/media/downloads/compleet" --output "C:/media/" --action move --conflict override -non-strict --def subtitles=n artwork=n "movieFormat=/films/{n} {y}/{fn}" "seriesFormat=/series/{n}/{fn}" >> "C:/Media/filebot.log" 2>&1
NOTE: Change all the folders to your own folders created at the beginning.
In my case C:\Media\Downloads\Compleet\ is the Sorting_Folder
And so on...
Short explanation of the used commands:
Code: Select all
rmdir /Q /S c:\Media\Downloads\Compleet
Code: Select all
md c:\ blablaba
Code: Select all
Xcopy blablabla
Save file as -> sorting.cmd
If it is still a txt file then rename it to sorting.cmd.
If that doesn't work follow this tutorial.
After that is done place te file inside the scriptFiles_Folder
In my case C:\Media\Scripts\Files\sorting.cmd
6. Download Invoke.vbs here
And place invoke.vbs into scriptsFiles_folder
In my case C:\Media\Scripts\Files\sorting.cmd
7. Setting Run commands in uTorrent Settings Use the following code and put it in the run window of uTorrent:
Code: Select all
wscript c:\Media\Downloads\Script\Files\invoke.vbs c:\Media\Downloads\Script\Files\sorteren.cmd
8. Setting up Download to Sorting Completed

You have now completed the biggest part.
This is it for now, if more people need help with setting up XBMC please let me know and i'll update this howto with that.
If everything has gone correctly you can now download a .torrent file and place it inside the Downloads_folder
When download is completed uTorrent will put the downloaded file into the Move_Folder
Then uTorrent will start the created script.
The script will copy all files from the Move_Folder to the Sorting_Folder
Then Filebot will sort the files and place them in the correct MOVIE/TV-Show folder.
The rest of de cmd batch file will clean the folders so they won't get cluttered.
Thats all! If You liked my Tutorial please donate to Rednoah! He made this possible!