Charmed Quark Systems, Ltd. - Support Forums and Community
Sage Media Server driver (beta) - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: Driver Development (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=13)
+--- Thread: Sage Media Server driver (beta) (/showthread.php?tid=5497)



Sage Media Server driver (beta) - Fonceur - 03-01-2010

SamVimes2 Wrote:1) the 'recorded shows' set of lists is populated at first from youngest to oldest. when new items are added to the list, though, they are added to the bottom of the list.
Right, scheduling a new recording job and other things like that will also have similar issues. I should be able to improve that...

Quote:It would be nice to have some traversible grouping structure like in the sage interface. i can imagine this *not* being a simple fix :-)
Something similar to the channels handling, with linked lists would do it, but yes that's not exactly trivial... Wink


Sage Media Server driver (beta) - SamVimes2 - 03-01-2010

Thanks for checking in. If anybody can do it, you can!


Sage Media Server driver (beta) - zpollock - 03-03-2010

I'm just setting up the Sage driver and am stuck on an issue. I can play ripped DVDs manually from my HD-200, and I've installed the server and client drivers.

Both drivers show that they are connected and ready, but issuing a WatchShowPath command from the IV does nothing, so I've tried some testing by just passing the pointer directly into the WatchShowPath field via the field browser. Based on the log below it seems like the path is making it through okay, but it complains of a null pointer exception in the gkusnick.sagetv.api.WidgetAPI$List.size field. Any thoughts?

Code:
Wed 3/3 16:54:50.730 [Thread-7@1a68ef9] [[SageTCPServer-MessageType]]: Found match with WSP
Wed 3/3 16:54:50.731 [Thread-7@1a68ef9] [[SageTCPServer-SageServer(001d6a4cf595:9751)]]: Message received: WSP:D:\shares\Movies\300\VIDEO_TS
Wed 3/3 16:54:50.731 [Thread-7@1a68ef9] [[SageTCPServer-SageServer(001d6a4cf595:9751)]]: Now 1 incoming message(s) in list.
Wed 3/3 16:54:50.731 [Thread-7@1a68ef9] [[SageTCPServer-SageServer(001d6a4cf595:9751)]]: (Processing messages) There is now 1 incoming message.
Wed 3/3 16:54:50.810 [Thread-7@1a68ef9] [[SageTCPServer-SageServer(001d6a4cf595:9751)]]: The following UI context are available:
Wed 3/3 16:54:50.810 [Thread-7@1a68ef9] [[SageTCPServer-SageServer(001d6a4cf595:9751)]]: (Processing messages) WSP:D:\shares\Movies\300\VIDEO_TS
Wed 3/3 16:54:50.810 [Thread-7@1a68ef9] [[SageTCPServer-SageServer(001d6a4cf595:9751)]]: Watching show with path [D:\shares\Movies\300\VIDEO_TS]
Wed 3/3 16:54:50.813 [AsyncWatch@1abcc03] VideoFrame.watch(A[30349,30328,"300/300",0@0121.18:39,0])
Wed 3/3 16:54:50.813 [AsyncWatch@1abcc03] watchThisFile=MediaFile[id=30327 A[30349,30328,"300/300",0@0121.18:39,0] host=ha-server encodedBy= format=DVD 0:00:00 0 kbps [] D:\shares\Movies\300\VIDEO_TS, Seg0[Thu 1/21 18:39:53.141-Thu 1/21 18:39:53.142]]
Wed 3/3 16:54:50.735 [Thread-7@1a68ef9] [[SageTCPServer-SageServer(001d6a4cf595:9751)]]: EXCEPTION java.lang.NullPointerException AT gkusnick.sagetv.api.WidgetAPI$List.size(WidgetAPI.java:1776)

Wed 3/3 16:54:50.735 [Thread-7@1a68ef9] java.util.AbstractList$Itr.hasNext(Unknown Source)

Wed 3/3 16:54:50.735 [Thread-7@1a68ef9] gkusnick.sagetv.api.WidgetAPI.FindWidget(WidgetAPI.java:486)

Wed 3/3 16:54:50.814 [AsyncWatch@1abcc03] Watch airing is a file & over, do that instead dvd=false
Wed 3/3 16:54:50.814 [AsyncWatch@1abcc03] PooledThread ended w/ an exception: java.lang.NullPointerException



Sage Media Server driver (beta) - zpollock - 03-03-2010

Problem solved.

I was working on this remotely, and the problem was just the fact that the extender wasn't waking up. Since I could communicate with other fields (and couldn't see the extender) I thought it was powering up. All is working now.


Sage Media Server driver (beta) - SamVimes2 - 03-05-2010

another observation - a show that is currently recording does not show up in the recorded shows lists. this is inconsistent with the sage UI, and requires special handling to code the knowledge that this particular show is playable from the 'upcoming list' (or would in theory if i were that ambitious!).

It would be great if a show showed up in 'recorded' land as soon as it started recording.


Sage Media Server driver (beta) - Fonceur - 03-06-2010

SamVimes2 Wrote:another observation - a show that is currently recording does not show up in the recorded shows lists.
I would assume the auto-updates picks it up after a while, adding it at the end... Or does that really only happen after the whole show has been recorded?


Sage Media Server driver (beta) - Fonceur - 03-07-2010

SamVimes2 Wrote:1) the 'recorded shows' set of lists is populated at first from youngest to oldest.
I took a look, and that doesn't seem trivial to do. OTOH, this has been available for a long time through the "backdoor" method... Basically, what you want to use is something like:

Code:
GlobalVars::GetLength(GVar:RSList. LVar:RSListLength)

If System::Equals(%(LVar:RSListLength), 0)
   MacroEng::RunMacro(MEng.User.CQC.Macros.Sage.GetList(SageRepo
       RecordedShows StartTime True False GVar:RSList GVar:RSListOfIDs)
End

RecordedShows::SetBrowserList2(GVar:RSList, GVar:RSListOfIDs)

Where the RSList is the displayed recorded shows list, while the RSListOfIDs is the list used to get more details about a specific shows.

I will try to extract the SageTV part of the templates from the failed project I mentioned before... Wink I seem to remember some little issues about updates, which hopefully you'll be able to fix through some timed queries or something.


Sage Media Server driver (beta) - SamVimes2 - 03-07-2010

Fonceur Wrote:I would assume the auto-updates picks it up after a while, adding it at the end... Or does that really only happen after the whole show has been recorded?

I haven't stared at it all the way through to know for sure, but I've seen hour-long shows well into the 2nd half still in the 'upcoming' list. normally i want to play them within 10-15 minutes of start (so that i ff through commercials and end right around the real-time end)


Sage Media Server driver (beta) - Fonceur - 03-08-2010

I added a set of templates to the first post. Since I had to remove some more proprietary images (background, side navigation and volume up/down), some elements might clash a bit, but... Wink Please read the Templates section of the first post. Feel free to provide fixes to the known limitations and such (like say adding a Refresh button or some logic to clear the cache)...


Sage Media Server driver (beta) - Fonceur - 03-08-2010

SamVimes2 Wrote:I haven't stared at it all the way through to know for sure, but I've seen hour-long shows well into the 2nd half still in the 'upcoming' list. normally i want to play them within 10-15 minutes of start (so that i ff through commercials and end right around the real-time end)
That does sound like a limitation of the API, if SageTV isn't reporting that file as a new recorded show, there isn't much I can do... Try checking the sagetv_0.txt file to confirm that the updated RSL is sent late.