Justin Wetherell wrote:
> Actually, it does quite the opposite of what I was thinking. It doesn't
> matter what "player" is set to, it seems to record from that device. If
> "player=True" then it doesn't let you play television with it, it's only
> used for recording. This seems like the exact opposite of what I was
> thinking, maybe something funky is going on?

Will you try the latest svn version, I've done the changes and put a
little checking on the value of record_group (was player).

I could change the code so that when record_group is invalid, it uses
the play_group instead, but I think that this is then too easy for
people to miss, a crash nobody misses. ;-)

> You also need some sort of erro handling, if you have no playable
> devices in your video group. If you have "player=1" and go to the guide
> and try to play something, it crashes:
> tvguide.py (107): update schedule
> ivtv_xine_tv.py (88): PLAY CHAN: 3
> ivtv_xine_tv.py (213): PLAY CHAN: 3
> Traceback (most recent call last):
>   File "/usr/local/src/freevo/src/main.py", line 321, in eventhandler
>     app.eventhandler(event)
>   File "/usr/local/src/freevo/src/menu.py", line 425, in eventhandler
>     if not isinstance(menu, Menu) and menu.eventhandler(event):
>   File "/usr/local/src/freevo/src/tv/tvguide.py", line 211, in eventhandler
>     self.player('tv', self.selected.channel_id)
>   File "/usr/local/src/freevo/src/tv/tvmenu.py", line 100, in start_tv
>     plugin.getbyname(plugin.TV).Play(mode, tuner_id)
>   File "/usr/local/src/freevo/src/tv/plugins/ivtv_xine_tv.py", line 95,
> in Play
>     self.tuner.SetChannel(mode, tuner_channel)
>   File "/usr/local/src/freevo/src/tv/plugins/ivtv_xine_tv.py", line 215,
> in SetChannel
>     vg = self.current_vgrp = self.fc.getVideoGroup(self.current_chan , True)
>   File "/usr/local/src/freevo/src/tv/channels.py", line 115, in
> getVideoGroup
>     return config.VIDEO_GROUPS[group]
> IndexError: list index out of range
> osd.py (238): Couldnt load font "arial_bold.ttf"
> osd.py (244): trying alternate: verabd.ttf
> ivtv_xine_tv.py (123): 1160525713.28: tv app got INPUT_ENTER event
> Crash!
> Traceback (most recent call last):
>   File "/usr/local/src/freevo/src/main.py", line 498, in ?
>     MainTread().run()
>   File "/usr/local/src/freevo/src/main.py", line 358, in run
>     self.eventhandler(rc.get_event(True))
>   File "/usr/local/src/freevo/src/main.py", line 308, in eventhandler
>     if not rc.app()(event):
>   File "/usr/local/src/freevo/src/tv/plugins/ivtv_xine_tv.py", line 143,
> in eventhandler
>     self.tuner.TuneChannel( int(s_event[6]) )
> ValueError: invalid literal for int(): E
> 
> On 10/10/06, *Justin Wetherell* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     I didnt really understand the new VIDEO_GROUP syntax but here it
>     goes, just trying to clear some things up.
> 
>     Here is what my group looks like now:
>     VIDEO_GROUPS = [
>         VideoGroup(vdev='/dev/video0',
>                    adev=None,
>                    input_type='tuner',
>                    input_num=0,
>                    tuner_norm='NTSC',
>                    tuner_chanlist='us-cable',
>                    desc='Watch cable',
>                    group_type='ivtv',
>                    player=None)
>     ]
>     Here is what is used to look like before updating to todays SVN:
>     VIDEO_GROUPS = [
>         VideoGroup(vdev='/dev/video0',
>                    adev=None,
>                    input_type='tuner',
>                    input_num=0,
>                    tuner_norm='NTSC',
>                    tuner_chanlist='us-cable',
>                    desc='Regular cable',
>                    group_type='ivtv',
>                    recordable=True)
>     ]
> 
>     So basically, the recordable field has been dropped in favor of
>     player. If the player field is set to 1 then that device can ONLY be
>     played from and NOT recorded from? If that is true, maybe we should
>     change the field name to playerOnly? 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to