Author: duncan
Date: Wed Feb 20 15:59:39 2008
New Revision: 10392
Log:
[ 1891595 ] New ivtv_xine_tv plugin
Added for Richard van Paasen big patch
Modified:
branches/rel-1/freevo/src/tv/channels.py
Modified: branches/rel-1/freevo/src/tv/channels.py
==============================================================================
--- branches/rel-1/freevo/src/tv/channels.py (original)
+++ branches/rel-1/freevo/src/tv/channels.py Wed Feb 20 15:59:39 2008
@@ -288,6 +288,27 @@
return tuner_id, chan_name, prog_info
+ def getChannelInfoRaw(self):
+ '''Get program info for the current channel'''
+
+ tuner_id = self.getChannel()
+ chan_name = config.TV_CHANNELS[self.chan_index][1]
+ chan_id = config.TV_CHANNELS[self.chan_index][0]
+
+ channels = epg_xmltv.get_guide().GetPrograms(start=time.time(),
stop=time.time(), chanids=[chan_id])
+
+ if channels and channels[0] and channels[0].programs:
+ start_t = channels[0].programs[0].start
+ stop_t = channels[0].programs[0].stop
+ prog_s = channels[0].programs[0].title
+ else:
+ start_t = 0
+ stop_t = 0
+ prog_s = 'No info'
+
+ return tuner_id, chan_id, chan_name, start_t, stop_t, prog_s
+
+
if __name__ == '__main__':
fc = FreevoChannels()
print 'CHAN: %s' % fc.getChannel()
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog