[Windows] Post Processing Scripts

Come up with a useful post-processing script? Share it here!
Locked
lunaaaa
Newbie
Newbie
Posts: 5
Joined: August 20th, 2011, 10:44 am

Re: [Windows] Post Processing Scripts

Post by lunaaaa » August 20th, 2011, 6:15 pm

I did that, but after my download was done and had finished the script - the movie disappeared.

markus101
Release Testers
Release Testers
Posts: 413
Joined: August 13th, 2008, 2:51 am

Re: [Windows] Post Processing Scripts

Post by markus101 » August 20th, 2011, 6:26 pm

To confirm the entire movie was deleted, including the folder?

Is the folder where SABnzbd downloads the movies to the same as the directory that you set in Movies.exe.config?

I think there may be an issue with that use-case, but I want to ensure this is what you are seeing.

-Markus

lunaaaa
Newbie
Newbie
Posts: 5
Joined: August 20th, 2011, 10:44 am

Re: [Windows] Post Processing Scripts

Post by lunaaaa » August 20th, 2011, 6:30 pm

I will check it again tomorrow, either way these are my sab settings/config.

My temp directory is F:\Temp and everything (non-script related) gets extracted to E:\SABnzbd. My movies.exe w/ mencoder + config is at <sabroot>\scripts.

I do not use XBMC. Hell, the only option I care about is avi file joining anyways.

Code: Select all

<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="logDir" value="F:\Log"/>
    <add key="movieDir" value="E:\SABnzbd"/>
    <add key="hdMovieDir" value="E:\SABnzbd"/>
    <add key="ipodMovieDir" value="E:\SABnzbd"/>
    
    <!--Append IMDB id to end of filename " [tt1234567]" -->
    <add key="imdb" value="false"/>

    <!--Overwrite movie if it already exists?" -->
    <add key="overwriteFile" value="false"/>
    
    <!--Delete Movie Folder?-->
    <add key="deleteFolder" value="true"/> // changed it back for time being.
    <!-- Update XBMC Library?-->
    <add key="updateXbmc" value="true"/>
    <!-- Send Popup to XBMC?-->
    <add key="notifyXbmc" value="true"/>
    <!-- Clean XBMC Library after update & Notify?-->
    <add key="cleanLibrary" value="false"/>
    <!-- XBMC Path to Movies-->
    <add key="xbmcMoviePath" value="E:\1"/>
    <!-- XBMC Path to HD Movies-->
    <add key="xbmcHdMoviePath" value="E:\1"/>
    <!-- XBMC Hostname/IP Address-->
    <add key="xbmcHost" value="192.168.178.10"/>
    <!-- XBMC Port-->
    <add key="xbmcPort" value="9777"/>
    <!-- XBMC OS is Windows?-->
    <add key="xbmcOsWindows" value="true"/>
  </appSettings>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

markus101
Release Testers
Release Testers
Posts: 413
Joined: August 13th, 2008, 2:51 am

Re: [Windows] Post Processing Scripts

Post by markus101 » August 20th, 2011, 6:51 pm

Okay, looks like you're having the exact issue I mentioned, it should be fixed in version 0.2.7.0, which is just uploaded to Google Code.

Code: Select all

http://code.google.com/p/sabscripts/
Please let me know if this fixes it or now.

-Markus

lunaaaa
Newbie
Newbie
Posts: 5
Joined: August 20th, 2011, 10:44 am

Re: [Windows] Post Processing Scripts

Post by lunaaaa » August 20th, 2011, 6:54 pm

Alright, let me test it quick before I go to bed.

lunaaaa
Newbie
Newbie
Posts: 5
Joined: August 20th, 2011, 10:44 am

Re: [Windows] Post Processing Scripts

Post by lunaaaa » August 20th, 2011, 7:05 pm

Sorry for the double post, but the new version did the trick. I can confirm it is working as intended now.

Code: Select all

SABnzbd has downloaded "hanna.2011.dvdrip.xvid-amiable.cd1.par2" 

Finished at 2011-08-21 01:59:58
Downloaded 1.4 GB

Results of the job:

Stage stage-download 
    Downloaded in 1 minute 46 seconds at an average of 13.8 MB/s 

Stage stage-repair 
    [hanna.2011.dvdrip.xvid-amiable.cd2] Quick Check OK 
    [hanna.2011.dvdrip.xvid-amiable.cd1] Quick Check OK 

Stage stage-script 
    Connecting to XBMC... 

Stage stage-unpack 
    [hanna.2011.dvdrip.xvid-amiable.cd2] Unpacked 1 files/folders in 0 seconds 
    [hanna.2011.dvdrip.xvid-amiable.cd1] Unpacked 1 files/folders in 0 seconds 
    [hanna.2011.dvdrip.xvid-amiable.subs] Unpacked 6 files/folders in 0 seconds 
    [hanna.2011.dvdrip.xvid-amiable] Unpacked 1 files/folders in 0 seconds 


Output from user script "Movies.exe" (Exit code = 0):
Processing AVI Movie
Two AVI's Found, processing...
Running mencoder on hanna (2011)
hanna (2011) moved, Folder was kept
Updating XBMC
Connecting to XBMC...
That did the trick and it made the script even better than it already was. Thanks markus.

markus101
Release Testers
Release Testers
Posts: 413
Joined: August 13th, 2008, 2:51 am

Re: [Windows] Post Processing Scripts

Post by markus101 » August 20th, 2011, 7:08 pm

Awesome! Glad its all working, thanks for helping me squash another bugm

-Markus

Lunatixz
Newbie
Newbie
Posts: 5
Joined: August 28th, 2011, 2:32 pm

Re: [Windows] Post Processing Scripts

Post by Lunatixz » August 28th, 2011, 2:37 pm

Hi, I'm trying to write a pre queue script that will discard any files from downloading that are larger then 14gb... (due to my temp download storage being limited).

This is what I have so far but it doesn't work
@echo off
if %6 GRQ 14000000000 echo 0

I would appreciate the help...

User avatar
shypike
Administrator
Administrator
Posts: 21036
Joined: January 18th, 2008, 12:49 pm

Re: [Windows] Post Processing Scripts

Post by shypike » August 28th, 2011, 3:06 pm

There's a "special" option in the sabnzbd.ini file that will give you the same result.
See: http://wiki.sabnzbd.org/configure-special item size_limit

Lunatixz
Newbie
Newbie
Posts: 5
Joined: August 28th, 2011, 2:32 pm

Re: [Windows] Post Processing Scripts

Post by Lunatixz » August 28th, 2011, 7:12 pm

Thank you... Exactly what I needed

User avatar
shypike
Administrator
Administrator
Posts: 21036
Joined: January 18th, 2008, 12:49 pm

Re: [Windows] Post Processing Scripts

Post by shypike » September 1st, 2011, 2:49 pm

I'm closing this topic, it's become to long and mixed up.

Locked