Author: dmeyer
Date: Thu Mar 23 19:33:35 2006
New Revision: 8131
Modified:
trunk/apps/bin/freevo-epg
Log:
call epg update over mbus
Modified: trunk/apps/bin/freevo-epg
==============================================================================
--- trunk/apps/bin/freevo-epg (original)
+++ trunk/apps/bin/freevo-epg Thu Mar 23 19:33:35 2006
@@ -62,6 +62,11 @@
TVSERVER = {'type': 'home-theatre', 'module': 'tvserver'}
+def update():
+ mbus = freevo.ipc.Instance('freevo')
+ mbus.tvserver.epg.update()
+ print 'update scheduled'
+ kaa.notifier.OneShotTimer(sys.exit, 0).start(0.1)
def search():
@@ -102,7 +107,7 @@
sys.exit(0)
-if len(sys.argv) <= 1 or sys.argv[1] not in ['search', 'channels']:
+if len(sys.argv) <= 1 or sys.argv[1] not in ['update', 'search', 'channels']:
print
print 'usage: %s <options> <args>' % sys.argv[0]
print 'options:'
@@ -120,6 +125,9 @@
mbus = freevo.ipc.Instance('freevo')
mbus.connect('freevo.ipc.tvserver')
+if sys.argv[1] == 'update':
+ mbus.tvserver.epg.signals['connected'].connect(update)
+
elif sys.argv[1] == 'search':
mbus.tvserver.epg.signals['connected'].connect(search)
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog