2013-01-19, 08:17
(2013-01-17, 23:13)gthompson20 Wrote: Just browsed the source code-See Below:
It appears the web server HTTP Api was deprecated
http://wiki.xbmc.org/index.php?title=Web...r_HTTP_API
This section needs to be rewritten to use the new JSON RPS Interface as that is all that works in Frodo... I may take a crack at it tonight and see what I come up with.
http://wiki.xbmc.org/index.php?title=JSON_RPC
#####XBMC COMMUNICATIONS#####
#This function Automates communication with XBMC
XBMCAutomate () {
#Send notification to XBMC, Update Library, Clean Library
if [ "$XBMCNotify" = "Enabled" -o "$XBMCUpdate" = "Enabled" -o "$XBMCClean" = "Enabled" ]; then
for XBMCIP in ${XBMCIPs[@]}
do
echo "SENDING REQUESTED COMMANDS TO:$XBMCIP"
test "$XBMCNotify" = "Enabled" && curl -L -s -m3 --connect-timeout 5 "http://"$XBMCIP"/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(mythical%20Librarian%2Cadding%20show%20$tvdbshowname%20to%20library))" > /dev/null 2>&1
test "$XBMCUpdate" = "Enabled" && curl -L -s -m3 --connect-timeout 5 "http://"$XBMCIP"/xbmcCmds/xbmcHttp?command=ExecBuiltIn(UpdateLibrary(video))" > /dev/null 2>&1
test "$XBMCClean" = "Enabled" && curl -L -s -m3 --connect-timeout 5 "http://"$XBMCIP"/xbmcCmds/xbmcHttp?command=ExecBuiltIn(CleanLibrary(video))" > /dev/null 2>&1
done
fi
return 0
}
Added to the repository. Please test with SVN 950
(2012-11-11, 05:06)sdsnyr94 Wrote:Quote:I don't know what handbrake does. You can launch handbrake as a mythicalLibraian job if you'd like. User Jobs are documented in the wiki with it's own page.
I am running Handbrake as a JobSuccessfull job..... My issue was that with 'SYMLINK=Disabled', all the Database info was being removed PRIOR to the launch of the User Job... so according to MythBackend there was no longer a MythTV User Job running (because you have now just removed all information about that program), and it would begin the next MythTV User Job.
Is there a way that you can delay the removal of DataBase information until after the JobSuccessfull user job has completed?
The Symlink=Disabled is kinda a depricated feature. There is a script called MythDataDeleter. http://www.mythtv.org/wiki/MythDataDeleter We wrote that right after mythicalLibrarian switched to MythDataGrabber. MythDataDeleter will do what you want.