Duncan Webb wrote:
> Will you try with the webserver, nothing to configure except a
> user/password.
>
> The call below does not work
> (status, schedule) = RecordClient().getScheduledRecordingsNow()

No, it does not. RecordClient() starts the kaa.rpc2 connection but it
takes a while until it is connected. So getScheduledRecordingsNow is
called when there is no connection yet. The record_client.py main code
uses:

| rc = RecordClient()
| kaa.inprogress(rc.channel).wait()

It waits until the client is connected. Just like you wait for the
result in getScheduledRecordingsNow, you need to wait until the channel
is ready. In a perfect world the RecordClient object is created on
startup and after that just used. The connection will be open the whole
time. Notice: if you stop and start the record server, kaa.rpc2
reconnects itself. I suggest you create the RecordClient when Freevo or
the webserver starts. By doing that you can be sure that the client is
connected when the server is running.


Dischi

-- 
"[Our enemies] never stop thinking about new ways to harm our country and
 our people, and neither do we." (George W. Bush, August 5th 2004)

------------------------------------------------------------------------------
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to