summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2018-10-02 19:21:14 +0200
committerhorchi <vdr@jwendel.de>2018-10-02 19:21:14 +0200
commitbd6ac8b88a6e128ad8778aad89f5d8c3f31148de (patch)
treec5e044200fc3101d6d14452aadc04b524883281b /lib
parent1cbab41a38411ded875924d8b3cdaba68bafd574 (diff)
downloadvdr-epg-daemon-bd6ac8b88a6e128ad8778aad89f5d8c3f31148de.tar.gz
vdr-epg-daemon-bd6ac8b88a6e128ad8778aad89f5d8c3f31148de.tar.bz2
2018-10-02: version 1.1.143 (horchi)\n change: Fixed compile problem of epglv \n \n1.1.143
Diffstat (limited to 'lib')
-rw-r--r--lib/curl.c4
-rw-r--r--lib/dbdict.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/curl.c b/lib/curl.c
index d87ceba..93cb4a3 100644
--- a/lib/curl.c
+++ b/lib/curl.c
@@ -120,6 +120,7 @@ int cCurl::init(const char* httpproxy)
curl_easy_setopt(handle, CURLOPT_TIMEOUT, 30); // Set timeout
curl_easy_setopt(handle, CURLOPT_NOBODY, 0); //
curl_easy_setopt(handle, CURLOPT_USERAGENT, CURL_USERAGENT); // Some servers don't like requests
+ curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "");
return success;
}
@@ -437,7 +438,8 @@ int cCurl::downloadFile(const char* url, int& size, MemoryStruct* data, int time
curl_easy_setopt(handle, CURLOPT_TIMEOUT, timeout); // Set timeout
curl_easy_setopt(handle, CURLOPT_NOBODY, data->headerOnly ? 1 : 0); //
curl_easy_setopt(handle, CURLOPT_USERAGENT, userAgent); // Some servers don't like requests without a user-agent field
- curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "gzip"); //
+// curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "gzip"); //
+ curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "");
if (headerlist)
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headerlist);
diff --git a/lib/dbdict.h b/lib/dbdict.h
index 94aab67..3b0398a 100644
--- a/lib/dbdict.h
+++ b/lib/dbdict.h
@@ -308,6 +308,8 @@ class cDbTableDef : public cDbService
}
const char* getName() { return name; }
+
+ int hasName(const char* n) { return strcasecmp(name, n) == 0; }
int fieldCount() { return dfields.size(); }
cDbFieldDef* getField(int id) { return _dfields[id]; }