I wrote this script to fix header compression issues or invalid file error with MKVs that is sometimes reported by standalone media players such as the O!play, WD TV and the Patriot Box Office. The script calls mkclean to fix such mkvs, the mkclean tool is used "to modify files in a way they can play in broken/incomplete players." The script also fetches xbmc metadata using media companion and ember media manager. It also renames movies to fit the following format "Movie Name (Year)", this is to fix nzbs from nzbmatrix that contain group information and other things. If you don't like the format, then use the options in media companion to rename the movies to the format you see fit.
Prerequisites:
mkWDclean.exe from mkclean tool
mkvtoolnix latest release
Instructions:
1) Install mkvtoolnix.
2) Copy mkWDclean.exe tool from mkclean tool to your script folder or where ever.
3) Download SabNZBdMovies and extract exe and config file to your script folder.
4) Edit the config file to meet your needs.
5) Set your Movie categories post processing script to SabNZBdMovies.exe.
Information:
SabNZBdMovies.exe.config is used to turn on or off options and point SabNZBdMovies to the paths of the need programs.
Ensure that the paths of the programs below have full control by the users.
If you don't want Ember to run then delete the EmberPath key and so on, only the paths keys need to be deleted if you don't want that part of the script to run.
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<!-- Delete any keys for any part of the processor that you don't want to run -->
<configuration>
<appSettings>
<add key="EmberPath" value="C:\Program Files (x86)\EmberMediaManager\Ember Media Manager.exe"/>
<add key="EmberArgs" value="-newauto -all"/>
<add key="MediaCompanionPath" value="C:\Program Files (x86)\Media Companion\mc_com.exe"/>
<add key="MediaCompanionArgs" value="-m"/>
<add key="mkWDcleanPath" value="C:\Program Files (x86)\SABnzbd\mkWDclean.exe"/>
<add key="RenameFlag" value="1"/>
</appSettings>
</configuration>
This script is provided without guarantees, I will try and support it as best I can but I am a busy individual. I will upload the source code tomorrow.
VB .net Source code here:
http://www.sendspace.com/file/16er29
Best of luck.