summaryrefslogtreecommitdiff
path: root/src/vdr-plugin/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vdr-plugin/config.c')
-rw-r--r--src/vdr-plugin/config.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/vdr-plugin/config.c b/src/vdr-plugin/config.c
index 23a6feb..5428188 100644
--- a/src/vdr-plugin/config.c
+++ b/src/vdr-plugin/config.c
@@ -120,11 +120,17 @@ bool cWebvideoConfig::ReadConfigFile(const char *inifile) {
for (int i=0; i<iniparser_getnsec(conf); i++) {
const char *section = iniparser_getsecname(conf, i);
- if (strncmp(section, "site-", 5) == 0) {
- const char *sitename = section+5;
- const int maxsectionlen = 40;
- char key[64];
+ if (strcmp(section, "webvi") != 0) {
+ const int maxsectionlen = 100;
+ char key[128];
char *keyname;
+ const char *sitename;
+
+ cString domain = parseDomain(section);
+ if (domain == "")
+ sitename = section;
+ else
+ sitename = domain;
strncpy(key, section, maxsectionlen);
key[maxsectionlen] = '\0';