patches for undelete-0.0.3
Commit Message
It appears that the new undelete-0.0.3 requires some patches.
Regards,
Comments
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");
@@ -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;
}