Bgprocess-plugin

From VDR Wiki
Revision as of 15:27, 26 November 2013 by Wirbel (talk | contribs) (Created page with "==Description== '''Author:''' Allows commandline tools to send a status report via SVDRP to VDRs OSD. ===Status=== Last Update 07/2008 ==Images== {| |[[Image:bgproces...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Author:

Allows commandline tools to send a status report via SVDRP to VDRs OSD.

Status

Last Update 07/2008

Images

'
'

SVDRP Commands

<NAME> <STARTTIME> <PERCENT> <DESCRIPTION>
  • NAME = as shown in OSD (lefthand side)
  • STARTTIME = Identifier, used for each following call
  • PERCENT = progess (0..100)
  • DESCRIPTION = a useful desc for OSD (righthand side)

example:

shell> TIMESTAMP=$(date +%s)
shell> svdrpsend.pl plug bgprocess process test $TIMESTAMP 1 test
shell> svdrpsend.pl plug bgprocess process test $TIMESTAMP 10 test
shell> svdrpsend.pl plug bgprocess process test $TIMESTAMP 101 test

The last line ends the current status display.

Patches

diff -ruN bgprocess-0.1.0.org/bgprocess.c bgprocess-0.1.0/bgprocess.c
--- bgprocess-0.1.0.org/bgprocess.c	2008-06-23 22:14:15.000000000 +0200
+++ bgprocess-0.1.0/bgprocess.c	2008-08-16 07:25:18.000000000 +0200
@@ -152,7 +152,6 @@
 bool cPluginBgprocess::Initialize(void)
 {
   // Initialize any background activities the plugin shall perform.
-  RegisterI18n(tlPhrases);
   return true;
 }

the tlphrases-Patch is incomplete:

 
diff --git a/i18n.h b/i18n.h
index ee84e4c..c625a5e 100644
--- a/i18n.h
+++ b/i18n.h
@@ -13,6 +13,8 @@
 #include <vdr/i18n.h>
 #include <vdr/config.h>         // for VDRVERSNUM define only
 
+#if VDRVERSNUM < 10507
 extern const tI18nPhrase tlPhrases[];
+#endif
 
 #endif //_I18N__H

wrong bracket:

diff --git a/bgprocess.c b/bgprocess.c
index 69206bb..eff2a10 100644
--- a/bgprocess.c
+++ b/bgprocess.c
@@ -330,7 +330,7 @@ void BgProcessMenu::ShowBgProcesses()
  Clear();
  if (iter == bgProcessList.end() && CompletedList.size()==0)
    {
-    Add(new cOsdItem(" "),osUnknown,false);
+    Add(new cOsdItem(" ",osUnknown,false));
     Add(new cOsdItem(tr(" No background process running"),osUnknown,false));
    }
  for (; iter != bgProcessList.end(); iter++)

Current Version

0.1.0

Links

  1. https://raw.github.com/CReimer/vdr4arch/master/plugins/vdr-bgprocess/bgprocess-osditem-fix.diff Patches for VDR 1.7.x
  2. https://raw.github.com/CReimer/vdr4arch/master/plugins/vdr-bgprocess/bgprocess-tlphrases-fix.diff Patches for VDR 1.7.x