My script won't work:

Come up with a useful post-processing script? Share it here!
Post Reply
Bjur
Newbie
Newbie
Posts: 5
Joined: July 8th, 2013, 7:03 am

My script won't work:

Post by Bjur »

Hi I have tried to create a script, which I can't get to work:

I have tried both with .bat and .exe file but the problem is Ember Media Manager only starts up, but never scrapes. When not using the script in Sabnzbd there's no problem.

@ECHO OFF
CALL "C:\Program Files (x86)\theRenamer\theRenamer.exe" -fetchmovie
CALL "Y:\Programmer\Ember Media Manager\Ember Media Manager.exe" -newauto -all
CALL "C:\Program Files (x86)\wget\bin\wget.exe" http://xbmc:xxxx@localhost:8091/xbmcCmd ... ry(video))
END

Hope someone can help.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: My script won't work:

Post by shypike »

You should probably first select the correct job folder.

Code: Select all

@ECHO OFF
cd /d %1
CALL "C:\Program Files (x86)\theRenamer\theRenamer.exe" -fetchmovie
CALL "Y:\Programmer\Ember Media Manager\Ember Media Manager.exe" -newauto -all
CALL "C:\Program Files (x86)\wget\bin\wget.exe" http://xbmc:xxxx@localhost:8091/xbmcCmd ... rary(video))
END
Bjur
Newbie
Newbie
Posts: 5
Joined: July 8th, 2013, 7:03 am

Re: My script won't work:

Post by Bjur »

shypike wrote:You should probably first select the correct job folder.

Code: Select all

@ECHO OFF
cd /d %1
CALL "C:\Program Files (x86)\theRenamer\theRenamer.exe" -fetchmovie
CALL "Y:\Programmer\Ember Media Manager\Ember Media Manager.exe" -newauto -all
CALL "C:\Program Files (x86)\wget\bin\wget.exe" http://xbmc:xxxx@localhost:8091/xbmcCmd ... rary(video))
END
Can you please elaborate?
In sab i choose the exe file in categories settings. Therenamer runs fine and Ember also shows up in task manager processes but doesn't scrape and just hangs.
Bjur
Newbie
Newbie
Posts: 5
Joined: July 8th, 2013, 7:03 am

Re: My script won't work:

Post by Bjur »

Sorry I only saw the first line of reply.
When I tried to add
cd /d %1 it still didn't changed anything. I can still see Ember Media Manager *32 in processes, but it still hangs. I can't get it to scrape.
Do you have any other tricks I can try?

Thanks for the help.
User avatar
redglory
Newbie
Newbie
Posts: 9
Joined: August 31st, 2012, 8:53 am

Re: My script won't work:

Post by redglory »

Bjur wrote:Sorry I only saw the first line of reply.
When I tried to add
cd /d %1 it still didn't changed anything. I can still see Ember Media Manager *32 in processes, but it still hangs. I can't get it to scrape.
Do you have any other tricks I can try?

Thanks for the help.
I have same problem.

Might be because of the way we are calling windows program inside subprocess.Popen which is how SABnzbd executes scripts:

Code: Select all

p = subprocess.Popen(command, shell=need_shell, stdin=subprocess.PIPE,
                            stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
                            startupinfo=stup, env=env, creationflags=creationflags)
HTPC: LC-Power 1320mi :: Sapphire PURE WHITE Fusion E350 :: 4GB DDR3 :: SSD Corsair Nova 2 [SO] :: 3TB [Storage]
powered by Win7 :: XBMC Frodo :: SABnzbd :: CouchPotato :: SickBeard :: Headphones
User avatar
redglory
Newbie
Newbie
Posts: 9
Joined: August 31st, 2012, 8:53 am

Re: My script won't work:

Post by redglory »

Tried with whole compiled version with my Media.emm, settings.xml and AdvancedSettigns.xml and all worked fine.

If you want to try it.

I've packed it: get it here!

Hope it helps!
HTPC: LC-Power 1320mi :: Sapphire PURE WHITE Fusion E350 :: 4GB DDR3 :: SSD Corsair Nova 2 [SO] :: 3TB [Storage]
powered by Win7 :: XBMC Frodo :: SABnzbd :: CouchPotato :: SickBeard :: Headphones
Post Reply