OS: Windows Server 2012 R2 Essentials
Filebot: 4.6.1
Downloaders: NZBGet and uTorrent
I've got things setup so that uTorrent runs a script that renames files and according to them being either movies or TV shows moves them to the proper folder/structure. That works 100% no issues and is based on the directions found viewtopic.php?f=4&t=215. My issue is that this does NOT work at all for post processing when called from NZBGet with the code placed in a .bat file.
Current Script
In uTorrent in the Run program field i have the following:
Code: Select all
"C:/Program Files/FileBot/filebot.launcher.exe" -script fn:amc --output "D:/ServerFolders/Downloads/Check" --log-file amc.log --action move --conflict override -non-strict --def subtitles=en "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" "seriesFormat=D:/ServerFolders/TV Shows/{n}/{n} Season {s}/{n} - {s00e00} - {t}" "movieFormat=D:/ServerFolders/Movies/HD/{n} ({y})" clean=y deleteAfterExtract=y excludeList=amc-input.txt
Code: Select all
@echo off
goto start:
########################################
### NZBGET POST-PROCESSING SCRIPT ###
# Brief description goes here.
#
# Lengthier description and instructions go here. Blah, blah blah
# and so on and so forth....
########################################
### OPTIONS ###
# An option goes here, do you want that? (yes, no).
#
# The explanation of the option goes here...
#DoYouWantThisOption=no
### NZBGET POST-PROCESSING SCRIPT ###
#########################################
:start
"C:/Program Files/FileBot/filebot.launcher.exe" -script fn:amc --output "D:/ServerFolders/Downloads/Check" --log-file amc.log --action move --conflict override -non-strict --def subtitles=en "seriesFormat=D:/ServerFolders/TV Shows/{n}/{n} Season {s}/{n} - {s00e00} - {t}" "movieFormat=D:/ServerFolders/Movies/HD/{n} ({y})" clean=y deleteAfterExtract=y excludeList=amc-input.txt
rem Return an exit code understood by nzbget
rem # Exit codes used by NZBGet
rem POSTPROCESS_SUCCESS=93
rem POSTPROCESS_NONE=95
rem POSTPROCESS_ERROR=94
exit /b 93
Code: Select all
Run script [fn:amc] at [Sat Feb 06 20:40:11 EST 2016]
Parameter: subtitles = en
Parameter: seriesFormat = D:/ServerFolders/TV Shows/{n}/{n} Season {s}/{n} - {s00e00} - {t}
Parameter: movieFormat = D:/ServerFolders/Movies/HD/{n} ({y})
Parameter: clean = y
Parameter: deleteAfterExtract = y
Parameter: excludeList = amc-input.txt
Invalid arguments: pass in either file arguments or ut_dir/ut_file parameters but not both
Failure (°_°)
My requirements are essentially:
- - Rename the file
- - Identify if the file is a movie or a TV show
- - Move it to the desired folder/structure based on if its a movie or TV show
- - Cleanup after rename move
- - While not required, grab the subtitles from Opensubs