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.
My script won't work:
Re: My script won't work:
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
Re: My script won't work:
Can you please elaborate?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
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.
Re: My script won't work:
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.
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.
Re: My script won't work:
I have same problem.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.
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
powered by Win7 :: XBMC Frodo :: SABnzbd :: CouchPotato :: SickBeard :: Headphones
Re: My script won't work:
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!
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
powered by Win7 :: XBMC Frodo :: SABnzbd :: CouchPotato :: SickBeard :: Headphones