Hi,
the "old" behavior of the OK key has been to open the submenu,
it is not a big thing to change that back.
I will send a patch tomorrow!
If you want to start watching TV, you can use the PLAY key.
It also would be possible to add a PLAY option to the menu
for programs that are running at the moment.
I will include that in my patch!
Hope, that is to your liking.
Regards
Tanja
Pascal Schirrmann schrieb:
> Hi,
>
> The new behavior of the 'program_display.py', that is, when you press
> 'enter' on a program, the program is recorded doesn't fit my needs.
>
> It's very convenient to be able to record a program on the fly, but i
> prefer to do that with the 'Record' key an let the 'old' behavior for
> the OK key.
> That being said, I think it would be better to let the choice to the user.
>
> I tried to patch that, but I'm really not good with python and freevo !
> This time, I think I overcome my python trouble, but not my freevo lack
> of knowledge.
>
> I was able to change the program_display.py. Now, if the TV_DEFAULT_PLAY
> is set in local_conf.py, the first choice in the menu is 'Play this
> program'. If not, the menu is as before.
>
> But I wasn't able to actually start the TV Show with this option (not a
> clue what to call), and, stranger, pressing the OK key still start the
> record, not my new funct ???
>
> Any help appreciated (Greatly appreciated :-D )
>
> Another point : Is there a translation process in place ? Or should I
> just have a look in the different op files and send back the translation
> I'll do ?
>
> Thanks,
>
>
> ------------------------------------------------------------------------
>
> --- /home/freevo/svn/freevo/src/tv/program_display.py 2007-02-02
> 20:17:52.000000000 +0100
> +++ program_display.py 2007-02-17 20:22:00.000000000 +0100
> @@ -1,4 +1,5 @@
> # -*- coding: iso-8859-1 -*-
> +# vim: ts=4:sw=4:et:sts=4
> # -----------------------------------------------------------------------
> # ProgramDisplay - Information and actions for TvPrograms.
> # -----------------------------------------------------------------------
> @@ -118,8 +118,15 @@
> items = []
>
>
> - ## 1.) 'Schedule for recording' OR 'Remove from schedule'
> - # check if this program is scheduled
> + ## 0.) 'Play Program'. This is to go backward to the old
> + # mode, with the 'Enter' key start plying TV
> + # This plug is to add only if TV_DEFAULT_PLAY is set in local_conf.py
> + try:
> + if config.TV_DEFAULT_PLAY:
> + items.append(menu.MenuItem(_('Play this Program'),
> + action=self.play_program))
> + except AttributeError:
> + _debug_("TV_DEFAULT_PLAY is not in local_conf.py")
>
> ## 1.) 'Schedule for recording' OR 'Remove from schedule'
> # check if this program is scheduled
> @@ -169,6 +176,13 @@
>
> ### Actions:
>
> + def play_program(self, arg=None, menuw=None):
> + """
> + Play the program immediately
> + """
> + # doesn't work !
> + (result,msg) = start_tv(self.prog.channel)
> +
> def schedule_program(self, arg=None, menuw=None):
> """
> add a program to schedule
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Freevo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel