• 1
  • 14
  • 15
  • 16(current)
  • 17
  • 18
[RELEASE] SageTV recordings
(2014-03-09, 15:26)mzup Wrote: I have never been able to get this to work with any system running xbmc that is not the system running sagetv itself. If I use the xbmc on the sagetv system it plays, but my openelec and my linux systems see the recordings but when I go to play something, nothing happens. Does it have to do with the type of video it is? They are mp4 files.

My paths are field in with trailing \ and the unc path is selected and accessible by the "clients"

Can you send a xbmc.log file? I'll look into it but hard to help without that
Reply
Sure, but from what system am I send the log, the server or the client?

::Edit

Figured out you want the client.

http://pastebin.com/4J2fzdTx
Reply
(2014-03-09, 15:56)mzup Wrote: Sure, but from what system am I send the log, the server or the client?

::Edit

Figured out you want the client.

http://pastebin.com/4J2fzdTx

Looks like its a case sensitivity issue. Sage says the video you're trying playback is at D:\Videos but you have d:\videos in the xbmc settings. Can you update your xbmc setting to match it exactly and say D:\Videos and then try again? I can look to fix that in the future but that should do it. Keep me posted.
Reply
That fixed it

thanks
Reply
Hopefully someone can help.. Trying to get this to work, the only thing I can see is the "Browse channel listings" everything else gives an error.

All my sage recordings are unc paths, but It doesn't seem to get that far. Any help is greatly appreciated.

From the xbmc.log:

Code:
22:04:13 T:4844  NOTICE: Thread XBPyThread start, auto delete: false
22:04:13 T:4844  NOTICE: -->Python Interpreter Initialized<--
22:04:14 T:4844  NOTICE: ****XBMC python version (sys.version_info)=(2, 6, 6, 'final', 0)****
22:04:14 T:4844  NOTICE: ****using import simplejson as _json****
22:04:14 T:4844  NOTICE: http://sage:[email protected]:8080/sagex/api?c=xbmc:GetTVMediaFilesGroupedByTitle&size=500&encoder=json
22:04:14 T:4844  NOTICE: *** sagex request URL:http://sage:[email protected]:8080/sagex/api?c=xbmc:GetTVMediaFilesGroupedByTitle&size=500&encoder=json
22:04:14 T:4844   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'unicode' object has no attribute 'keys'
                                            Traceback (most recent call last):
                                              File "C:\Users\Common\AppData\Roaming\XBMC\addons\plugin.video.sagetv\default.py", line 821, in <module>
                                                VIEWLISTOFRECORDEDSHOWS(url,name)
                                              File "C:\Users\Common\AppData\Roaming\XBMC\addons\plugin.video.sagetv\default.py", line 142, in VIEWLISTOFRECORDEDSHOWS
                                                titles = titleObjects.keys()
                                            AttributeError: 'unicode' object has no attribute 'keys'
                                            -->End of Python script error report<--
22:04:14 T:972   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.sagetv/?mode=1&name=1.%20Watch%20Recordings&url=http%3a%2f%2fsage%3afrey%40192.168.1.20%3a8080%2fsagex%2fapi%3fc%3dxbmc%3aGetTVMediaFilesGroupedByTitle%26size%3d500%26encoder%3djson
22:04:14 T:972   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sagetv/?mode=1&name=1.%20Watch%20Recordings&url=http%3a%2f%2fsage%3afrey%40192.168.1.20%3a8080%2fsagex%2fapi%3fc%3dxbmc%3aGetTVMediaFilesGroupedByTitle%26size%3d500%26encoder%3djson) failed
22:04:14 T:4768  NOTICE: Thread Background Loader start, auto delete: false
22:09:43 T:5420  NOTICE: Thread Jobworker start, auto delete: true
Reply
(2014-05-07, 04:13)armbrusts Wrote: Hopefully someone can help.. Trying to get this to work, the only thing I can see is the "Browse channel listings" everything else gives an error.

All my sage recordings are unc paths, but It doesn't seem to get that far. Any help is greatly appreciated.

From the xbmc.log:

Code:
22:04:13 T:4844  NOTICE: Thread XBPyThread start, auto delete: false
22:04:13 T:4844  NOTICE: -->Python Interpreter Initialized<--
22:04:14 T:4844  NOTICE: ****XBMC python version (sys.version_info)=(2, 6, 6, 'final', 0)****
22:04:14 T:4844  NOTICE: ****using import simplejson as _json****
22:04:14 T:4844  NOTICE: http://sage:[email protected]:8080/sagex/api?c=xbmc:GetTVMediaFilesGroupedByTitle&size=500&encoder=json
22:04:14 T:4844  NOTICE: *** sagex request URL:http://sage:[email protected]:8080/sagex/api?c=xbmc:GetTVMediaFilesGroupedByTitle&size=500&encoder=json
22:04:14 T:4844   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'unicode' object has no attribute 'keys'
                                            Traceback (most recent call last):
                                              File "C:\Users\Common\AppData\Roaming\XBMC\addons\plugin.video.sagetv\default.py", line 821, in <module>
                                                VIEWLISTOFRECORDEDSHOWS(url,name)
                                              File "C:\Users\Common\AppData\Roaming\XBMC\addons\plugin.video.sagetv\default.py", line 142, in VIEWLISTOFRECORDEDSHOWS
                                                titles = titleObjects.keys()
                                            AttributeError: 'unicode' object has no attribute 'keys'
                                            -->End of Python script error report<--
22:04:14 T:972   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.sagetv/?mode=1&name=1.%20Watch%20Recordings&url=http%3a%2f%2fsage%3afrey%40192.168.1.20%3a8080%2fsagex%2fapi%3fc%3dxbmc%3aGetTVMediaFilesGroupedByTitle%26size%3d500%26encoder%3djson
22:04:14 T:972   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sagetv/?mode=1&name=1.%20Watch%20Recordings&url=http%3a%2f%2fsage%3afrey%40192.168.1.20%3a8080%2fsagex%2fapi%3fc%3dxbmc%3aGetTVMediaFilesGroupedByTitle%26size%3d500%26encoder%3djson) failed
22:04:14 T:4768  NOTICE: Thread Background Loader start, auto delete: false
22:09:43 T:5420  NOTICE: Thread Jobworker start, auto delete: true

Can you send the full log file? And can you also open the URL below in your browser and let me know the results?

http://sage:[email protected]:8080/sagex...coder=json
Reply
Thanks for taking a look.

This is the result from the url:

Code:
{"error":"javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function GetShowCategoriesString in object sagex.api.ShowAPI@1de95da. (<Unknown source>#24) in <Unknown source> at line number 24","exception":"java.lang.RuntimeException: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function GetShowCategoriesString in object sagex.api.ShowAPI@1de95da. (<Unknown source>#24) in <Unknown source> at line number 24\r\n\tat sagex.remote.api.ApiHandler.callService(ApiHandler.java:178)\r\n\tat sagex.remote.api.ApiHandler.handleRequest(ApiHandler.java:131)\r\n\tat sagex.remote.SagexServlet.doPost(SagexServlet.java:59)\r\n\tat sagex.remote.SagexServlet.doGet(SagexServlet.java:37)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:707)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:820)\r\n\tat org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)\r\n\tat org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)\r\n\tat org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)\r\n\tat org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)\r\n\tat org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)\r\n\tat org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)\r\n\tat org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)\r\n\tat org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)\r\n\tat org.mortbay.jetty.Server.handle(Server.java:326)\r\n\tat org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)\r\n\tat org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)\r\n\tat org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)\r\n\tat org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)\r\n\tat org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)\r\n\tat org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)\r\n\tat org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)\r\nCaused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function GetShowCategoriesString in object sagex.api.ShowAPI@1de95da. (<Unknown source>#24) in <Unknown source> at line number 24\r\n\tat com.sun.script.javascript.RhinoScriptEngine.invoke(Unknown Source)\r\n\tat com.sun.script.javascript.RhinoScriptEngine.invokeFunction(Unknown Source)\r\n\tat sagex.remote.api.ServiceFactory.callService(ServiceFactory.java:83)\r\n\tat sagex.remote.api.ApiHandler.callService(ApiHandler.java:176)\r\n\t... 21 more\r\nCaused by: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function GetShowCategoriesString in object sagex.api.ShowAPI@1de95da. (<Unknown source>#24)\r\n\tat sun.org.mozilla.javascript.internal.ScriptRuntime.constructError(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.ScriptRuntime.constructError(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.ScriptRuntime.typeError(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.ScriptRuntime.typeError2(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.ScriptRuntime.notFunctionError(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.ScriptRuntime.getPropFunctionAndThisHelper(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.ScriptRuntime.getPropFunctionAndThis(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.Interpreter.interpret(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.InterpretedFunction.call(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(Unknown Source)\r\n\tat com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(Unknown Source)\r\n\tat com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(Unknown Source)\r\n\tat sun.org.mozilla.javascript.internal.InterpretedFunction.call(Unknown Source)\r\n\t... 25 more\r\n","sagexVersion":"7.0.23.3"}

Here is a complete log. http://pastebin.com/X9NPKfUz
Reply
Hmm. Do you not have any SageTV recordings? I think that function expects some.
Reply
There are hundreds of recordings...

Could it be this:

Cannot find function GetShowCategoriesString in object sagex.api.ShowAPI

error from the above webserver response?
Reply
(2014-05-07, 22:05)armbrusts Wrote: There are hundreds of recordings...

Could it be this:

Cannot find function GetShowCategoriesString in object sagex.api.ShowAPI

error from the above webserver response?

Hmm. What version of SageTV are you using? It's almost like there's an API call that sagex is making but that Sage isn't supporting. I've never seen this issue in anyone to-date....
Reply
Is that function part of sage or the Sagex-api plugin? (of which I'm running the last version - will have to find out the exact version when I get home).
Reply
(2014-05-07, 22:29)armbrusts Wrote: Is that function part of sage or the Sagex-api plugin? (of which I'm running the last version - will have to find out the exact version when I get home).

It's part of the core SageTV API. The sagex-apis just expose it. And per the docs below, that function only exists in SageTV 7.1 and above.

http://download.sage.tv/api/sage/api/Sho...sage.Show)
Reply
Sage version is 7.1.9.256
sagex-api 7.1.9.24
sagex-services 7.1.9.15
Reply
I uninstalled all plugins, (Jetty Web Server 2.3.0.14 or newer
Sagex-api vs 7.1.9.12 or newer
Batch Metadata Tools 4.10.1) Then re installed them.. no change.

I supposed the next thing is to re-install sage itself.. yay
Reply
(2014-05-08, 04:13)armbrusts Wrote: I uninstalled all plugins, (Jetty Web Server 2.3.0.14 or newer
Sagex-api vs 7.1.9.12 or newer
Batch Metadata Tools 4.10.1) Then re installed them.. no change.

I supposed the next thing is to re-install sage itself.. yay

Sorry you have to go through this... any luck?
Reply
  • 1
  • 14
  • 15
  • 16(current)
  • 17
  • 18

Logout Mark Read Team Forum Stats Members Help
[RELEASE] SageTV recordings2