Page 7 of 7

Re: [Windows] Post Processing Scripts

Posted: August 20th, 2011, 6:15 pm
by lunaaaa
I did that, but after my download was done and had finished the script - the movie disappeared.

Re: [Windows] Post Processing Scripts

Posted: August 20th, 2011, 6:26 pm
by markus101
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

Re: [Windows] Post Processing Scripts

Posted: August 20th, 2011, 6:30 pm
by lunaaaa
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>

Re: [Windows] Post Processing Scripts

Posted: August 20th, 2011, 6:51 pm
by markus101
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

Re: [Windows] Post Processing Scripts

Posted: August 20th, 2011, 6:54 pm
by lunaaaa
Alright, let me test it quick before I go to bed.

Re: [Windows] Post Processing Scripts

Posted: August 20th, 2011, 7:05 pm
by lunaaaa
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.

Re: [Windows] Post Processing Scripts

Posted: August 20th, 2011, 7:08 pm
by markus101
Awesome! Glad its all working, thanks for helping me squash another bugm

-Markus

Re: [Windows] Post Processing Scripts

Posted: August 28th, 2011, 2:37 pm
by Lunatixz
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...

Re: [Windows] Post Processing Scripts

Posted: August 28th, 2011, 3:06 pm
by shypike
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

Re: [Windows] Post Processing Scripts

Posted: August 28th, 2011, 7:12 pm
by Lunatixz
Thank you... Exactly what I needed

Re: [Windows] Post Processing Scripts

Posted: September 1st, 2011, 2:49 pm
by shypike
I'm closing this topic, it's become to long and mixed up.