Commit 624c7a96 authored by conrad's avatar conrad

handle t= parameters in oggz-chop URLs, with / separating start and end time


git-svn-id: http://svn.annodex.net/liboggz/trunk@3505 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent d482c16b
......@@ -12,11 +12,21 @@
static void
set_param (OCState * state, char * key, char * val)
{
char * sep;
if (!strncmp ("s", key, 2)) state->start = parse_timespec (val);
if (!strncmp ("start", key, 6)) state->start = parse_timespec (val);
if (!strncmp ("e", key, 2)) state->end = parse_timespec (val);
if (!strncmp ("end", key, 6)) state->end = parse_timespec (val);
if (!strncmp ("t", key, 2)) {
if ((sep = strchr (val, '/')) != NULL) {
*sep++ = '\0';
state->end = parse_timespec (sep);
}
state->start = parse_timespec (val);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment