htsp: make DVR file open compatible with webui URLs.

This commit is contained in:
Adam Sutton 2013-01-02 22:30:20 +00:00
parent fe5fd68883
commit f7f1051eaa

View 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");