Author: duncan
Date: Tue Dec 25 16:55:45 2007
New Revision: 10239

Log:
[ 1857397 ] Added thumbnail support to recordings_manager
Patch from James Trietsch applied


Modified:
   branches/rel-1-7/freevo/ChangeLog
   branches/rel-1-7/freevo/src/tv/plugins/recordings_manager.py
   branches/rel-1/freevo/ChangeLog
   branches/rel-1/freevo/src/tv/plugins/recordings_manager.py

Modified: branches/rel-1-7/freevo/ChangeLog
==============================================================================
--- branches/rel-1-7/freevo/ChangeLog   (original)
+++ branches/rel-1-7/freevo/ChangeLog   Tue Dec 25 16:55:45 2007
@@ -16,6 +16,7 @@
 == Release 1.7.6 (2008-??-??) ==
 --------------------------------
 
+ * Updated recordings manager plug-in to add thumbnail support (F#1857397)
  * Updated recordserver to default watched/keep status (F#1857395)
  * 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/recordings_manager.py
==============================================================================
--- branches/rel-1-7/freevo/src/tv/plugins/recordings_manager.py        
(original)
+++ branches/rel-1-7/freevo/src/tv/plugins/recordings_manager.py        Tue Dec 
25 16:55:45 2007
@@ -401,6 +401,10 @@
             watched = eval(watched)
         self.watched =  watched
 
+        imagefile = vfs.getoverlay(video_item.filename) + '.raw'
+        if os.path.isfile(imagefile):
+            self.image = imagefile
+
         try:
             self.timestamp = float(self.video_item['recording_timestamp'])
         except ValueError:
@@ -534,6 +538,7 @@
             self.icon = config.ICON_DIR + '/status/television_watched.png'
         else:
             self.icon = config.ICON_DIR + '/status/television_unwatched.png'
+        self.outicon = self.icon
 
 
     def __getitem__(self, key):
@@ -697,6 +702,8 @@
             self.items.reverse()
 
         self.set_icon()
+        if(self.items[0].image):
+            self.image=self.items[0].image
 
 
     # ======================================================================

Modified: branches/rel-1/freevo/ChangeLog
==============================================================================
--- branches/rel-1/freevo/ChangeLog     (original)
+++ branches/rel-1/freevo/ChangeLog     Tue Dec 25 16:55:45 2007
@@ -19,6 +19,7 @@
 == Release 1.7.6 (2008-??-??) ==
 --------------------------------
 
+ * Updated recordings manager plug-in to add thumbnail support (F#1857397)
  * Updated recordserver to default watched/keep status (F#1857395)
  * 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/recordings_manager.py
==============================================================================
--- branches/rel-1/freevo/src/tv/plugins/recordings_manager.py  (original)
+++ branches/rel-1/freevo/src/tv/plugins/recordings_manager.py  Tue Dec 25 
16:55:45 2007
@@ -401,6 +401,10 @@
             watched = eval(watched)
         self.watched =  watched
 
+        imagefile = vfs.getoverlay(video_item.filename) + '.raw'
+        if os.path.isfile(imagefile):
+            self.image = imagefile
+
         try:
             self.timestamp = float(self.video_item['recording_timestamp'])
         except ValueError:
@@ -534,6 +538,7 @@
             self.icon = config.ICON_DIR + '/status/television_watched.png'
         else:
             self.icon = config.ICON_DIR + '/status/television_unwatched.png'
+        self.outicon = self.icon
 
 
     def __getitem__(self, key):
@@ -697,6 +702,8 @@
             self.items.reverse()
 
         self.set_icon()
+        if(self.items[0].image):
+            self.image=self.items[0].image
 
 
     # ======================================================================

-------------------------------------------------------------------------
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

Reply via email to