From: Adam Sutton Date: Wed, 2 Jan 2013 22:30:20 +0000 (+0000) Subject: htsp: make DVR file open compatible with webui URLs. X-Git-Tag: v3.5~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7f1051eaa698591abdae7feae285334afe81908;p=thirdparty%2Ftvheadend.git htsp: make DVR file open compatible with webui URLs. --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 2e4bd516a..23319b3eb 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1371,7 +1371,8 @@ htsp_method_file_open(htsp_connection_t *htsp, htsmsg_t *in) if (*str == '/') str++; - if((s2 = tvh_strbegins(str, "dvr/")) != NULL) { + if((s2 = tvh_strbegins(str, "dvr/")) != NULL || + (s2 = tvh_strbegins(str, "dvrfile/")) != NULL) { dvr_entry_t *de = dvr_entry_find_by_id(atoi(s2)); if(de == NULL) return htsp_error("DVR entry does not exist");