Bgprocess-plugin
Jump to navigation
Jump to search
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++)