[mythtv-users] Force refresh of recordings list?

Mike Holden mythtv at mikeholden.org
Tue Apr 19 08:52:31 UTC 2011


Raymond Wagner wrote:
> On 4/15/2011 13:26, Mike Holden wrote:
>> Raymond Wagner wrote:
>>> On 4/15/2011 09:05, Mike Holden wrote:
>>>> 2. The problem I have with 1. above is that once the recgroup is
>>>> updated, the frontend doesn't automatically see the changes. I
>>>> would
>>>> like to send some kind of "recordings refresh" command to all
>>>> frontends to tell it to refresh it's list of recordings. Is this
>>>> possible? Again, I've searched the wiki and can't see anything
>>>> that
>>>> looks relevant.
>>> be = MythTV.MythBE()
>>> prog = Program.fromRecorded(rec)
>>> be.backendCommand(MythTV.static.BACKEND_SEP.join("MESSAGE",
>>> "RECORDING_LIST_CHANGE UPDATE", prog.toString))
>> TypeError: join() takes exactly one argument (3 given)
>
> Make that...
>
> from MythTV import Recorded, MythBE, Program
> rec = Recorded((<chanid>,<starttime>))
> be = MythBE()
> prog = Program.fromRecorded(rec)
> be.backendCommand(MythTV.static.BACKEND_SEP.join(("MESSAGE","RECORDING_LIST_CHANGE
> UPDATE", prog.toString())))

Thanks for your help Raymond, got this working!
-- 
Mike Holden




More information about the mythtv-users mailing list