summaryrefslogtreecommitdiff
path: root/lib/test.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-10-09 19:27:14 +0200
committerhorchi <vdr@jwendel.de>2017-10-09 19:27:14 +0200
commit1633749d2a188add75ad2aa68dc8bea9b7cd6c85 (patch)
treeedc74b6911bb0b6ec741d1cf21bbba13efe08b3a /lib/test.c
parente0aee67ccc08de9e2b23d2c866aa147128a87202 (diff)
downloadvdr-epg-daemon-1633749d2a188add75ad2aa68dc8bea9b7cd6c85.tar.gz
vdr-epg-daemon-1633749d2a188add75ad2aa68dc8bea9b7cd6c85.tar.bz2
2017-10-09: version 1.1.118 (horchi)\n - change: Fixed curl SSL mode \n\n
Diffstat (limited to 'lib/test.c')
-rw-r--r--lib/test.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/test.c b/lib/test.c
index bdc5d0a..705cc2f 100644
--- a/lib/test.c
+++ b/lib/test.c
@@ -668,8 +668,11 @@ int main(int argc, char** argv)
data.clear();
- asprintf(&url, "%s/eplist.cgi?action=show&file=%s",
- "www.eplists.de", argv[1]);
+ if (strncmp(argv[1], "http", 4) == 0)
+ asprintf(&url, "%s", argv[1]);
+ else
+ asprintf(&url, "%s/eplist.cgi?action=show&file=%s",
+ "www.eplists.de", argv[1]);
tell(0, "try to download [%s]", url);