summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2009-07-28 00:36:57 +0200
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2009-07-28 00:36:57 +0200
commitebd28ada087ab1a099f0694feb8b23ab4cd0bc2c (patch)
treee6e1ff109dc07801229095dfc2c55b16bc229bcd
parent5c504b6a858813276477822db6b7a5912a2c7593 (diff)
downloadvdr-plugin-muggle-ebd28ada087ab1a099f0694feb8b23ab4cd0bc2c.tar.gz
vdr-plugin-muggle-ebd28ada087ab1a099f0694feb8b23ab4cd0bc2c.tar.bz2
if the script muggle_getlyrics is not found, write a log message once
-rw-r--r--lyrics.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lyrics.c b/lyrics.c
index 936a58d..3367192 100644
--- a/lyrics.c
+++ b/lyrics.c
@@ -11,9 +11,17 @@
#include "mg_setup.h"
#include "vdr_player.h"
+static int script_warned;
+
int mgLyrics::RunCommand(const string cmd) {
int res=-1;
- if (access(cmd.c_str(),R_OK|X_OK)) return res;
+ if (access(cmd.c_str(),R_OK|X_OK)) {
+ if (!script_warned) {
+ mgDebug(1,"muggle[%d]: lyrics: Script %s not found\n",getpid(),cmd.c_str());
+ script_warned = 1;
+ }
+ return res;
+ }
char *tmp;
#if VDRVERSNUM < 10504
const char *backgr="&";