How do I set a manual recording

20 views
Skip to first unread message

David Hamann

unread,
Aug 14, 2011, 4:02:07 AM8/14/11
to sagetv-b...@googlegroups.com
What's the correct way to add/remove the manual recording flag?

is there something like this?

sageAPI.ClearManualRecording(item)

Tom Miranda

unread,
Aug 14, 2011, 5:46:21 AM8/14/11
to sagetv-b...@googlegroups.com
CancelRecord(item)

--
You received this message because you are subscribed to the Google Groups "SageTV for Boxee (Development)" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sagetv-boxee-dev/-/wvo75O3L5VwJ.
To post to this group, send email to sagetv-b...@googlegroups.com.
To unsubscribe from this group, send email to sagetv-boxee-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sagetv-boxee-dev?hl=en.

Tom Miranda

unread,
Aug 14, 2011, 7:31:03 AM8/14/11
to sagetv-b...@googlegroups.com
Forgot to say, to record an airing it's simply:

Record(item)

David Hamann

unread,
Aug 21, 2011, 1:11:20 AM8/21/11
to sagetv-b...@googlegroups.com
sageAPI.CancelRecord(item) works perfectly to remove the manual recording flag.

sageAPI.Record(item) produces this error.  Do I have something misconfigured?

22:04:13 T:3284 M:1048539136   DEBUG: sagex API call "Record" [args: (<mc.ListItem; proxy of <Swig Object of type 'XAPP::ListItem *' at 0xb316970> >,)] FAILED!
22:04:13 T:3284 M:1048539136   DEBUG: sagex API error response:
                                            MSG: None
                                            ERROR: Unknown Object Type: sage.e$f for Sage Object: sage.e$f@e6f600
22:04:13 T:3284 M:1048539136   DEBUG: sagex API exception:
                                            java.lang.Exception: Unknown Object Type: sage.e$f for Sage Object: sage.e$f@e6f600

                                            at sagex.remote.builder.SimpleJSONBuilder.handleError(SimpleJSONBuilder.java:68)

                                            at sagex.remote.builder.SageAPIBuilder.build(SageAPIBuilder.java:76)

                                            at sagex.remote.api.JsonReplyEncoder.encodeReply(JsonReplyEncoder.java:35)

                                            at sagex.remote.api.ApiHandler.handleRequest(ApiHandler.java:175)

                                            at sagex.remote.SagexServlet.doPost(SagexServlet.java:60)

                                            at sagex.remote.SagexServlet.doGet(SagexServlet.java:38)

                                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

                                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

                                            at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)

                                            at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)

                                            at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

                                            at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

                                            at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)

                                            at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

                                            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

                                            at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)

                                            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

                                            at org.mortbay.jetty.Server.handle(Server.java:326)

                                            at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)

                                            at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)

                                            at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)

                                            at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)

                                            at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

                                            at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)

                                            at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)

                                            Caused by: java.lang.Exception: Unknown Object Type: sage.e$f for Sage Object: sage.e$f@e6f600

                                            ... 24 more
22:04:13 T:3284 M:1048539136   ERROR: Scriptresult: Error
22:04:13 T:3284 M:1048539136  NOTICE: Traceback (most recent call last):
22:04:13 T:3284 M:1048539136  NOTICE:   File "<string>", line 6, in ?
22:04:13 T:3284 M:1048535040  NOTICE:   File "C:\Users\David\AppData\Roaming\BOXEE\userdata\apps\com.googlecode.sagetvboxee.sageboxee\sage.py", line 309, in __call__
22:04:13 T:3284 M:1048571904  NOTICE: raise SageApiException(resp)
22:04:13 T:3284 M:1048571904  NOTICE: sage
22:04:13 T:3284 M:1048571904  NOTICE: .
22:04:13 T:3284 M:1048571904  NOTICE: SageApiException
22:04:13 T:3284 M:1048571904  NOTICE: :
22:04:13 T:3284 M:1048571904  NOTICE: Unknown Object Type: sage.e$f for Sage Object: sage.e$f@e6f600

David Hamann

unread,
Aug 21, 2011, 1:21:13 AM8/21/11
to sagetv-b...@googlegroups.com
I'm working with this a bit more, and it looks like the Record(item) call is working, and the error is being thrown afterwards.

Tom Miranda

unread,
Aug 21, 2011, 4:55:28 AM8/21/11
to sagetv-b...@googlegroups.com
This is a known problem caused by the fact that the Record() method returns an object that can't be handled properly.  The work around is to catch the error in a try: except: block.

On Sun, Aug 21, 2011 at 1:21 AM, David Hamann <dha...@gmail.com> wrote:
I'm working with this a bit more, and it looks like the Record(item) call is working, and the error is being thrown afterwards.

--
You received this message because you are subscribed to the Google Groups "SageTV for Boxee (Development)" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sagetv-boxee-dev/-/5qFuEMo3wFAJ.

David Hamann

unread,
Aug 21, 2011, 7:29:05 AM8/21/11
to sagetv-b...@googlegroups.com
Thanks, That's what I needed to know.

Tom Miranda

unread,
Aug 21, 2011, 7:43:35 AM8/21/11
to sagetv-b...@googlegroups.com
Great.  Take a look at the epg options menu if you want to see an example.

On Sun, Aug 21, 2011 at 7:29 AM, David Hamann <dha...@gmail.com> wrote:
Thanks, That's what I needed to know.

--
You received this message because you are subscribed to the Google Groups "SageTV for Boxee (Development)" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sagetv-boxee-dev/-/dPilt86WwxcJ.
Reply all
Reply to author
Forward
0 new messages