Page 6 of 7

Re: [Windows] Post Processing Scripts

Posted: July 27th, 2011, 4:42 pm
by dansajd
I'm having an issue with multi-CD files as well.

Code: Select all

Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(String fileName, String arguments)
   at Movies.Program.Main(String[] args)
My config for reference:

Code: Select all

<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="logDir" value="C:\Program Files\SABnzbd\scripts\logs\movies"/>
    <add key="movieDir" value="D:\MOVIES"/>
    <add key="hdMovieDir" value="D:\MOVIES"/>
    <add key="ipodMovieDir" value="D:\MOVIES\iPod"/>
    <!--Delete Movie Folder?-->
    <add key ="deleteFolder" value="false"/>
    <!--Use Folder Name as Movie Name?-->
    <add key="useFolderName" value="false"/>
    <!-- Update XBMC Library?-->
    <add key ="updateXbmc" value="false"/>
    <!-- XBMC Path to Movies-->
    <add key ="xbmcMoviePath" value="W:\Test\Movies"/>
    <!-- XBMC Path to HD Movies-->
    <add key ="xbmcHdMoviePath" value="W:\Test\Movies\_HD"/>
    <!-- XBMC Hostname/IP Address-->
    <add key ="xbmcInfo" value="localhost:8080"/>
    <!-- XBMC HTTP Username-->
    <add key ="xbmcUsername" value="xbmc"/>
    <!-- XBMC HTTP Password-->
    <add key ="xbmcPassword" value="xbmc"/>
  </appSettings>
</configuration>
Sab uses D:\incomplete while processing and D:\complete once done.

For multi-CD releases, the incomplete files go to D:\incomplete\<Release Name>. The final, still split files go to D:\complete\<Release Name>\cd1.ext and cd2.ext. That's where the script fails.

I do have MEncoder in the same directory as movies.exe and am able to manually process the files from the command line. Non-split files move as expected.

Also worth mentioning that the <Release Name> folder does get created in D:\Movies. But since the script fails, nothing is moved to it.

Is there any other information I can provide?

Re: [Windows] Post Processing Scripts

Posted: July 27th, 2011, 11:07 pm
by markus101
To confirm you are able to manually process multi-file releases from the command line?

Is there additional errors that are output? There should be some more info (stack-trace) that would likely be helpful.

-Markus

Re: [Windows] Post Processing Scripts

Posted: July 28th, 2011, 12:02 am
by dansajd
Yes, I can manually process multi-file releases from the command line. In addition, single-file releases process normally with the post-processing script through Sab.

That's the only error output I'm getting. For some reason, nothing is getting written to the log folder, either. And yes, the log folder already exists.

Re: [Windows] Post Processing Scripts

Posted: July 28th, 2011, 12:12 am
by markus101
I have a feeling the logging is messed up, something else to look at, but I think the issue at hand is due to how it looks for mencoder, can you try adding your scripts directory to the windows PATH variable and see if that helps, it sounds like it can't find mencoder, possible due to how SABnzbd runs the script or something within the script itself.

-Markus

Re: [Windows] Post Processing Scripts

Posted: July 28th, 2011, 12:15 am
by dansajd
Sure, I'll give it a go. I really should've considered doing that sooner.

Edit After Testing:

Added it to the PATH, logged off and back on, and now it's golden.

Thanks for the help!

Re: [Windows] Post Processing Scripts

Posted: July 28th, 2011, 8:08 pm
by markus101
Awesome, glad to hear it.

-Markus

Re: [Windows] Post Processing Scripts

Posted: August 15th, 2011, 3:48 pm
by thoskam
I seem to be having some issues with this script - It seems to run fine - it joins the two avi's - but no matter what I put in my config file - it deletes the folder (which I dont want) and it does not move the resultant file to the destination directory. What am I doing wrong?

Here is my config file:

Code: Select all

<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="logDir" value="C:\Logs\"/>
    <add key="movieDir" value="D:\downloads\Complete\MOVIES\"/>
    <add key="hdMovieDir" value="D:\downloads\Complete\MOVIES\"/>
    <add key="ipodMovieDir" value="D:\downloads\Complete\MOVIES\"/>
    <!--Delete Movie Folder?-->
    <add key ="deleteFolder" value="FALSE"/>
    <!--Use Folder Name as Movie Name?-->
    <add key="useFolderName" value="TRUE"/>
    <!-- Update XBMC Library?-->
    <add key ="updateXbmc" value="FALSE"/>
    <!-- XBMC Path to Movies-->
    <add key ="xbmcMoviePath" value="D:\downloads\Complete\TEST\"/>
    <!-- XBMC Path to HD Movies-->
    <add key ="xbmcHdMoviePath" value="J:\Movies\HD\"/>
    <!-- XBMC Hostname/IP Address-->
    <add key ="xbmcInfo" value="192.168.1.124:8080"/>
    <!-- XBMC HTTP Username-->
    <add key ="xbmcUsername" value="xbmc"/>
    <!-- XBMC HTTP Password-->
    <add key ="xbmcPassword" value="xbmc"/>
  </appSettings>
</configuration>
At first i thought it was an issue because my destination and my source were different drives - thats why i changed my dest. folder to TEST -- but still no luck - it reencodes the file down to one file - but just leaves it there.

Any help?

TK

Re: [Windows] Post Processing Scripts

Posted: August 15th, 2011, 3:59 pm
by markus101
Based on what I see if your config it is doing what it was asked to do.

Code: Select all

<add key="movieDir" value="D:\downloads\Complete\MOVIES\"/>
<add key="hdMovieDir" value="D:\downloads\Complete\MOVIES\"/>
<add key="ipodMovieDir" value="D:\downloads\Complete\MOVIES\"/>
That is where the movies will be moved to the settings for XBMC are for updating XBMC only, as it will pass that path to XBMC to update.

Looks like your COmplete Directory for SAB and Movies.exe are both: D:\downloads\Complete\MOVIES\ - Which sounds like its not what you want.

Hope this helps:

Markus

Re: [Windows] Post Processing Scripts

Posted: August 16th, 2011, 11:02 am
by thoskam
Well i'm a big dumb idiot :) -- I thought the first set was your SOURCE -- and the xmbc was your Destination -- I didn't realize you didn't need the source folder at all - it picked it up from Sab -- looks like everything is working correctly now.. Am I understanding it correctly that if you put false to deleting the folder it just moves the empty folder over to the destination? -- i.e. when it got done in my movies folder I had a moviename.avi and an empty moviename folder sitting next to each other.. is that right? is there a way to get the movie to be moved back into the original folder?

Re: [Windows] Post Processing Scripts

Posted: August 16th, 2011, 12:10 pm
by markus101
setting DeleteFolder to false should keep the movie in the folder, though it sounds like there could be an issue with this in the code. I believe I fixed this in a new build, that I will need to upload, I'll see what I have and go from there.

-Markus

Re: [Windows] Post Processing Scripts

Posted: August 17th, 2011, 10:23 am
by thoskam
Thanks -- It looks like it doesn't move it back into the folder when it does a join - if its just one file it renames and moves fine. I'll keep tabs on the google code page for the update!

BTW - this script is awesome!

TK

Re: [Windows] Post Processing Scripts

Posted: August 17th, 2011, 4:34 pm
by markus101
Movies 0.2.6 is now uploaded, it should fix the multi-avi issue thoskam mentioned.

If you are using it to update XBMC there has been one change in that it does not use the Web Interface, it now uses the Event server (the web server being deprecated), so you need to ensure under network settings you have "Allow XBMC to be controlled by applications on other systems" enabled if SAB runs on a machine other than your XBMC box. This is the same interface many remote programs for phones use as well as EventGhost.

Please let me know if there are any issues.

-Markus

Re: [Windows] Post Processing Scripts

Posted: August 18th, 2011, 10:23 am
by thoskam
That worked perfectly! Thanks for the quick turnaround!! Bloody brilliant!

Re: [Windows] Post Processing Scripts

Posted: August 20th, 2011, 10:58 am
by lunaaaa
I am using the movies PP script and so far it works fine. It currently moves all avi files in a single folder (specified by the movieDir) but I would prefer it creating sub directories in that particular folder.

So rather than:
[movieDir = E:\Complete]
E:\Complete\movie1.avi
E:\Complete\movie2.avi
E:\Complete\movie3.avi

I prefer:
[movieDir - E:\Complete]
E:\Complete\movie1\movie1.avi
E:\Complete\movie2\movie2.avi
E:\Complete\movie3\movie3.avi

Is it possible to get that working, somehow? I am using the latest version if that matters.

lunaaaa

Re: [Windows] Post Processing Scripts

Posted: August 20th, 2011, 12:49 pm
by markus101
You just need to set:

Code: Select all

<add key ="deleteFolder" value="true"/>
In Movies.exe.config to false, it defaults to true.

-Markus