Author: duncan
Date: Sun Dec 30 17:01:10 2007
New Revision: 10246
Log:
[ 1858008 ] Manual record crash for month Dec
Patch from Valera Koval applied
Modified:
branches/rel-1-7/freevo/ChangeLog
branches/rel-1-7/freevo/src/tv/plugins/manual_record.py
branches/rel-1/freevo/ChangeLog
branches/rel-1/freevo/src/tv/plugins/manual_record.py
Modified: branches/rel-1-7/freevo/ChangeLog
==============================================================================
--- branches/rel-1-7/freevo/ChangeLog (original)
+++ branches/rel-1-7/freevo/ChangeLog Sun Dec 30 17:01:10 2007
@@ -21,6 +21,7 @@
* Updated recordings manager plug-in to add thumbnail support (F#1857397)
* Updated recordserver to default watched/keep status (F#1857395)
* Updated shut down to allow single key confirmation (F#1857456)
+ * Fixed manual record tv plug-in to work in December (B#1858008)
* Fixed oneclick weather plug-in to allow non-ascii location names (B#1856597)
* Fixed web server favorites and edit_favorite to use name and duplicate
detection (B#1857394)
Modified: branches/rel-1-7/freevo/src/tv/plugins/manual_record.py
==============================================================================
--- branches/rel-1-7/freevo/src/tv/plugins/manual_record.py (original)
+++ branches/rel-1-7/freevo/src/tv/plugins/manual_record.py Sun Dec 30
17:01:10 2007
@@ -159,9 +159,9 @@
_debug_('mod_start_month(self, arg=None, menuw=None)', 2)
items = []
- iter=1
- while iter < 13:
- month_name = self.months[(iter + self.starttime[1] - 1) % 12 - 1];
+ iter=0
+ while iter < 12:
+ month_name = self.months[(iter + self.starttime[1] - 1) % 12];
month_num = self.months.index(month_name) + 1;
items.append(menu.MenuItem(month_name, action=self.alter_prop,
arg=('startmonth', (month_name, month_num))))
iter = iter + 1
@@ -222,10 +222,11 @@
_debug_('mod_stop_month(self, arg=None, menuw=None)', 2)
items = []
- iter=1
- while iter < 13:
- items.append(menu.MenuItem(self.months[(iter + self.stoptime[1] -
1) % 12 - 1], action=self.alter_prop,
- arg=('stopmonth', (self.months[(iter +
self.stoptime[1] - 1) % 12 - 1], (iter + self.stoptime[1] - 1) % 12))))
+ iter=0
+ while iter < 12:
+ month_name = self.months[(iter + self.stoptime[1] - 1) % 12];
+ month_num = self.months.index(month_name) + 1;
+ items.append(menu.MenuItem(month_name, action=self.alter_prop,
arg=('stopmonth', (month_name, month_num))))
iter = iter + 1
manualrecord_menu = menu.Menu(_('Modify Day'), items,
Modified: branches/rel-1/freevo/ChangeLog
==============================================================================
--- branches/rel-1/freevo/ChangeLog (original)
+++ branches/rel-1/freevo/ChangeLog Sun Dec 30 17:01:10 2007
@@ -24,6 +24,7 @@
* Updated recordings manager plug-in to add thumbnail support (F#1857397)
* Updated recordserver to default watched/keep status (F#1857395)
* Updated shut down to allow single key confirmation (F#1857456)
+ * Fixed manual record tv plug-in to work in December (B#1858008)
* Fixed oneclick weather plug-in to allow non-ascii location names (B#1856597)
* Fixed web server favorites and edit_favorite to use name and duplicate
detection (B#1857394)
Modified: branches/rel-1/freevo/src/tv/plugins/manual_record.py
==============================================================================
--- branches/rel-1/freevo/src/tv/plugins/manual_record.py (original)
+++ branches/rel-1/freevo/src/tv/plugins/manual_record.py Sun Dec 30
17:01:10 2007
@@ -159,9 +159,9 @@
_debug_('mod_start_month(self, arg=None, menuw=None)', 2)
items = []
- iter=1
- while iter < 13:
- month_name = self.months[(iter + self.starttime[1] - 1) % 12 - 1];
+ iter=0
+ while iter < 12:
+ month_name = self.months[(iter + self.starttime[1] - 1) % 12];
month_num = self.months.index(month_name) + 1;
items.append(menu.MenuItem(month_name, action=self.alter_prop,
arg=('startmonth', (month_name, month_num))))
iter = iter + 1
@@ -222,10 +222,11 @@
_debug_('mod_stop_month(self, arg=None, menuw=None)', 2)
items = []
- iter=1
- while iter < 13:
- items.append(menu.MenuItem(self.months[(iter + self.stoptime[1] -
1) % 12 - 1], action=self.alter_prop,
- arg=('stopmonth', (self.months[(iter +
self.stoptime[1] - 1) % 12 - 1], (iter + self.stoptime[1] - 1) % 12))))
+ iter=0
+ while iter < 12:
+ month_name = self.months[(iter + self.stoptime[1] - 1) % 12];
+ month_num = self.months.index(month_name) + 1;
+ items.append(menu.MenuItem(month_name, action=self.alter_prop,
arg=('stopmonth', (month_name, month_num))))
iter = iter + 1
manualrecord_menu = menu.Menu(_('Modify Day'), items,
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog