Page 1 of 1
My script won't work:
Posted: July 8th, 2013, 7:08 am
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.
Re: My script won't work:
Posted: July 8th, 2013, 9:00 am
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
Re: My script won't work:
Posted: July 8th, 2013, 9:05 am
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.
Re: My script won't work:
Posted: July 10th, 2013, 1:42 am
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.
Re: My script won't work:
Posted: July 12th, 2013, 11:53 am
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)
Re: My script won't work:
Posted: July 24th, 2013, 4:44 am
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!