summaryrefslogtreecommitdiff
path: root/lib/config.c
blob: 6bb6d3d097f8c4bbf3afc70d1f92cc654ee06bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * config.c:
 *
 * See the README file for copyright information and how to reach the author.
 *
 */

#include <string.h>

#include "common.h"
#include "config.h"

cEPG2VDRConfig EPG2VDRConfig;

cEPG2VDRConfig::cEPG2VDRConfig(void) 
{
   mainmenuVisible = yes;
   mainmenuFullupdate = 0;

   useproxy = no;
   sstrcpy(httpproxy, "127.0.0.1:8000", sizeof(httpproxy));
   sstrcpy(username, "", sizeof(username));
   sstrcpy(password, "", sizeof(password));

   checkInitial = yes;
   updatetime = 6;        // hours
   days = 8;
   upddays = 2;
   storeXmlToFs = no;
   blacklist = no;
   masterMode = 0;

   getepgimages = yes;
   maximagesperevent = 1;
   epgImageSize = 2;

   seriesEnabled = yes;
   sstrcpy(seriesUrl, "eplists.constabel.net", sizeof(seriesUrl));
   seriesPort = 2006;
   storeSeriesToFs = no;

   // for VDR_PLUGIN

   activeOnEpgd = no;
   scheduleBoot = no;

   // for epgd

   sstrcpy(cachePath, "/var/cache/epgd", sizeof(cachePath));
   sstrcpy(httpPath, "/var/epgd/www", sizeof(httpPath));
   sstrcpy(pluginPath, PLGDIR, sizeof(pluginPath));
   sstrcpy(epgView, "eventsview.sql", sizeof(epgView));
   sstrcpy(theTvDBView, "thetvdbview.sql", sizeof(epgView));
   updateThreshold = 200;
   maintanance = no;
   httpPort = 9999;

   // 

   sstrcpy(dbHost, "localhost", sizeof(dbHost));
   dbPort = 3306;
   sstrcpy(dbName, "epg2vdr", sizeof(dbName));
   sstrcpy(dbUser, "epg2vdr", sizeof(dbUser));
   sstrcpy(dbPass, "epg", sizeof(dbPass));

   logstdout = no;
   loglevel = 1;

   uuid[0] = 0;

   scrapEpg = yes;
   scrapRecordings = yes;
}