patches for undelete-0.0.3

Message ID 4357DBE7.9070702@syphir.sytes.net
State New
Headers

Commit Message

C.Y.M Oct. 20, 2005, 6:03 p.m. UTC
  It appears that the new undelete-0.0.3 requires some patches.

Regards,
  

Comments

C.Y.M Oct. 22, 2005, 7:52 a.m. UTC | #1
C.Y.M wrote:
> It appears that the new undelete-0.0.3 requires some patches.
> 

Another change for undelete, since the date format has changed with the new vdr.

@@ -119,7 +119,7 @@
 // --- cMenuRecordingSelect
--------------------------------------------------------

 cMenuRecordingSelect::cMenuRecordingSelect(const char *Base, int Level, bool
OpenSubMenus)
-:cOsdMenu(Base ? Base : tr("Deleted Recordings"), 6, 6, 6)
+:cOsdMenu(Base ? Base : tr("Deleted Recordings"), 9, 6, 6)
 {
 #ifdef UND_Debug2
   dsyslog("%s: cMenuRecordingSelect::cMenuRecordingSelect Base=%s Level=%d
OpenSubMenus=%s", plugin_name, Base, Level, OpenS
ubMenus ? "true" : "false");
  

Patch

diff -ruN undelete-0.0.3/menuundelete.c vdr-1.3.34-eepg/PLUGINS/src/undelete-0.0.3/menuundelete.c
--- undelete-0.0.3/menuundelete.c.orig	2005-10-04 05:35:36.000000000 -0700
+++ undelete-0.0.3/menuundelete.c	2005-10-20 10:23:07.000000000 -0700
@@ -195,7 +195,7 @@ 
     {
       cRecording *recording = GetRecording(ri);
 #if VDRVERSNUM >= 10325
-      SetHelp(NULL, tr("Undelete"), tr("Delete"), (recording && recording->Info()->Title() && *recording->Info()->Title()) ? tr("Summary") : NULL);
+      SetHelp(NULL, tr("Undelete"), tr("Delete"), (recording && recording->Info()->Description() && *recording->Info()->Description()) ? tr("Info") : NULL);
 #else
       SetHelp(NULL, tr("Undelete"), tr("Delete"), (recording && recording->Summary() && *recording->Summary()) ? tr("Summary") : NULL);
 #endif
@@ -295,23 +295,19 @@ 
   {
     cRecording *recording = GetRecording(ri);
 #if VDRVERSNUM >= 10325
-    if (recording && recording->Info()->Title() && *recording->Info()->Title())
+    if (recording && recording->Info()->Description() && *recording->Info()->Description())
 #else
     if (recording && recording->Summary() && *recording->Summary())
 #endif
 #if VDRVERSNUM >= 10307
 #if VDRVERSNUM >= 10325
-      return AddSubMenu(new cMenuText(tr("Summary"), recording->Info()->Title()));
+      return AddSubMenu(new cMenuText(tr("Info"), recording->Info()->Description()));
 #else
       return AddSubMenu(new cMenuText(tr("Summary"), recording->Summary()));
 #endif
 #else
-#if VDRVERSNUM >= 10325
-      return AddSubMenu(new cMenuItemText(tr("Summary"), recording->Info()->Title()));
-#else
       return AddSubMenu(new cMenuItemText(tr("Summary"), recording->Summary()));
 #endif
-#endif
   }
   return osContinue;
 }