Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8772/src/tv
Modified Files:
player.py
Log Message:
remove old channel changing code and add some logging
Index: player.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/player.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** player.py 15 Sep 2004 20:45:31 -0000 1.4
--- player.py 13 Dec 2004 01:46:33 -0000 1.5
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.5 2004/12/13 01:46:33 rshortt
+ # remove old channel changing code and add some logging
+ #
# Revision 1.4 2004/09/15 20:45:31 dischi
# remove unneeded events functions
***************
*** 56,60 ****
! import time, os
import config
--- 59,65 ----
! import time
! import os
! import logging
import config
***************
*** 65,68 ****
--- 70,74 ----
from application import Application
+ log = logging.getLogger('tv')
class TVPlayer(Application):
***************
*** 107,132 ****
if event in [ TV_CHANNEL_UP, TV_CHANNEL_DOWN] or
str(event).startswith('INPUT_'):
! print 'NOT IMPLEMENTED YET'
! return True
!
! if event == TV_CHANNEL_UP:
! nextchan = self.fc.getNextChannel()
! elif event == TV_CHANNEL_DOWN:
! nextchan = self.fc.getPrevChannel()
! else:
! chan = int(event.arg)
! nextchan = self.fc.getManChannel(chan)
!
! nextvg = self.fc.getVideoGroup(nextchan)
!
! if self.current_vg != nextvg:
! self.stop(channel_change=1)
! print 'FIXME: vg changes'
! self.play('tv', nextchan)
! return True
!
! self.set_channel(nextchan)
! self.current_vg = self.fc.getVideoGroup(self.fc.getChannel())
! return True
return False
--- 113,117 ----
if event in [ TV_CHANNEL_UP, TV_CHANNEL_DOWN] or
str(event).startswith('INPUT_'):
! log.warning('channel events not implemented here yet')
return False
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog