Re: [Freevo-devel] Setting list items in manual recording dialog boxes

2004-06-20 Thread Hans Meine
On Saturday 19 June 2004 09:49, Wan Tat Chee wrote: The month and time configuration is ok, but I can't find anything to give me days-in-month information (short of creating a list, but it won't be able to handle leap years), so it lists 31 days regardless of which month it is. Maybe like

Re: [Freevo-devel] Setting list items in manual recording dialog boxes

2004-06-20 Thread Nicolas Chauvat
me days-in-month information (short of creating a list, but it won't be able to handle leap years), so it lists 31 days regardless of which month it is. Maybe like this: import time def daysInMonth(t): # construct time value for 1st of next month: l = time.localtime(t)

[Freevo-devel] Setting list items in manual recording dialog boxes

2004-06-19 Thread Wan Tat Chee
Hi, I've tried to make some changes to manual_record.py in the src/tv/plugins subdirectory, to present the month/date/time start/stop dialogs based on the current time. The code seems ok, though probably could be cleaned up a bit (my python knowledge is minimal). The off-by-one bug where the