]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp: make DVR file open compatible with webui URLs.
authorAdam Sutton <dev@adamsutton.me.uk>
Wed, 2 Jan 2013 22:30:20 +0000 (22:30 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Thu, 3 Jan 2013 19:36:24 +0000 (19:36 +0000)
src/htsp_server.c

index 2e4bd516a3ba5ec5efe6edf5a90cb9d81dddb3c6..23319b3eb10ecd6099fc6ed4dc8d3de641606f3a 100644 (file)
@@ -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");