]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix autorec start window
authorGlenn-1990 <g_christiaensen@msn.com>
Fri, 18 Dec 2015 16:34:57 +0000 (17:34 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 26 Dec 2015 15:48:13 +0000 (16:48 +0100)
src/htsp_server.c

index aff9cb4c248db8c9d5bc615a207fcdb741394c54..d7302daa0c90822f6bc8deb348cf71a4a9e213ec 100644 (file)
@@ -575,10 +575,9 @@ serierec_convert(htsp_connection_t *htsp, htsmsg_t *in, channel_t *ch, int autor
         start_window = start + 30;
         if (start_window >= 24 * 60)
           start_window -= 24 * 60;
-
-        htsmsg_add_s32(conf, "start", start >= 0 ? start : -1); // -1 = any time
-        htsmsg_add_s32(conf, "start_window", start_window >= 0 ? start_window : -1); // -1 = any duration
       }
+      htsmsg_add_s32(conf, "start", start >= 0 ? start : -1); // -1 = any time
+      htsmsg_add_s32(conf, "start_window", start_window >= 0 ? start_window : -1); // -1 = any duration
     }
     else { // for update, we don't care about "approxTime"
       if(!htsmsg_get_s32(in, "start", &s32))