summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/config.c b/config.c
index 9fab87b..5c6e586 100644
--- a/config.c
+++ b/config.c
@@ -5,8 +5,6 @@
*
*/
-#include <stdlib.h>
-#include <string.h>
#include "config.h"
/* Global instance */
@@ -25,44 +23,3 @@ cEpgfixerSetup::cEpgfixerSetup()
components = 0;
striphtml = 0;
}
-
-cString cEpgfixerSetup::m_ProcessedArgs;
-
-bool cEpgfixerSetup::ProcessArg(const char *Name, const char *Value)
-{
- if (SetupParse(Name, Value)) {
- m_ProcessedArgs = cString::sprintf("%s%s ", *m_ProcessedArgs ? *m_ProcessedArgs : " ", Name);
- return true;
- }
- return false;
-}
-
-bool cEpgfixerSetup::ProcessArgs(int argc, char *argv[])
-{
- return true;
-}
-
-bool cEpgfixerSetup::SetupParse(const char *Name, const char *Value)
-{
- const char *pt;
- if (*m_ProcessedArgs && NULL != (pt = strstr(m_ProcessedArgs + 1, Name)) &&
- *(pt - 1) == ' ' && *(pt + strlen(Name)) == ' ') {
- dsyslog("Skipping configuration entry %s=%s (overridden in command line)", Name, Value);
- return true;
- }
-
- if (!strcasecmp(Name, "RemoveQuotesFromShortText")) quotedshorttext = atoi(Value);
- else if (!strcasecmp(Name, "MoveDescriptionFromShortText")) blankbeforedescription = atoi(Value);
- else if (!strcasecmp(Name, "RemoveRepeatedTitleFromShortText")) repeatedtitle = atoi(Value);
- else if (!strcasecmp(Name, "RemoveDoubleQuotesFromShortText")) doublequotedshorttext = atoi(Value);
- else if (!strcasecmp(Name, "RemoveUselessFormatting")) removeformatting = atoi(Value);
- else if (!strcasecmp(Name, "MoveLongShortTextToDescription")) longshorttext = atoi(Value);
- else if (!strcasecmp(Name, "PreventEqualShortTextAndDescription")) equalshorttextanddescription = atoi(Value);
- else if (!strcasecmp(Name, "ReplaceBackticksWithSingleQuotes")) nobackticks = atoi(Value);
- else if (!strcasecmp(Name, "FixStreamComponentDescriptions")) components = atoi(Value);
- else if (!strcasecmp(Name, "StripHTMLEntities")) striphtml = atoi(Value);
- else
- return false;
-
- return true;
-}