diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2011-03-26 18:20:11 +0200 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2011-03-27 11:00:06 +0300 |
commit | f33956dc7d8a0d9c2bcdbc705143231eb885cd89 (patch) | |
tree | ea7b660269c82d69ddcd8723e94f5bbe6a3a3c13 /src/vdr-plugin | |
parent | e4990a7519817dc2d90e1e9bb5c27ecbad4f8f5f (diff) | |
download | vdr-plugin-webvideo-f33956dc7d8a0d9c2bcdbc705143231eb885cd89.tar.gz vdr-plugin-webvideo-f33956dc7d8a0d9c2bcdbc705143231eb885cd89.tar.bz2 |
vfat and verbose config file options
Diffstat (limited to 'src/vdr-plugin')
-rw-r--r-- | src/vdr-plugin/config.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/vdr-plugin/config.c b/src/vdr-plugin/config.c index 8bc3fde..1fa62c8 100644 --- a/src/vdr-plugin/config.c +++ b/src/vdr-plugin/config.c @@ -118,6 +118,27 @@ bool cWebvideoConfig::ReadConfigFile(const char *inifile) { SetTemplatePath(templatepath); } + const char *vfat = iniparser_getstring(conf, "webvi:vfat", NULL); + if (vfat) { + debug("vfat = %s (from %s)", vfat, inifile); + + if (strcmp(vfat, "1") == 0 || + strcmp(vfat, "true") == 0 || + strcmp(vfat, "yes") == 0 || + strcmp(vfat, "on") == 0) + { + vfatNames = true; + } else if (strcmp(vfat, "0") == 0 || + strcmp(vfat, "false") == 0 || + strcmp(vfat, "no") == 0 || + strcmp(vfat, "off") == 0) + { + vfatNames = false; + } else { + warning("Invalid value for config option vfat: %s in %s", vfat, inifile); + } + } + for (int i=0; i<iniparser_getnsec(conf); i++) { const char *section = iniparser_getsecname(conf, i); |