]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
User's DVR Configuration profile not used when scheduling recordings via HTSP
authorDeltaMikeCharlie <127641886+DeltaMikeCharlie@users.noreply.github.com>
Mon, 9 Jun 2025 23:43:49 +0000 (09:43 +1000)
committerFlole <Flole998@users.noreply.github.com>
Tue, 10 Jun 2025 04:50:37 +0000 (06:50 +0200)
src/htsp_server.c

index 223ce45b4a31ce976c5859bceae1ddf0135137e3..a690ab316cf3f5f8c1acddb0a8a222caae04d9e9 100644 (file)
@@ -2044,13 +2044,12 @@ htsp_method_addDvrEntry(htsp_connection_t *htsp, htsmsg_t *in)
   conf = htsmsg_create_map();
   htsmsg_copy_field(conf, "enabled", in, NULL);
   s = htsmsg_get_str(in, "configName");
-  if (s) {
-    dvr_conf = dvr_config_find_by_uuid(s);
-    if (dvr_conf == NULL)
-      dvr_conf = dvr_config_find_by_name(s);
+  dvr_conf = dvr_config_find_by_list(htsp->htsp_granted_access->aa_dvrcfgs, s);
     if (dvr_conf)
+  {
       htsmsg_add_uuid(conf, "config_name", &dvr_conf->dvr_id.in_uuid);
   }
+  
   htsmsg_copy_field(conf, "start_extra", in, "startExtra");
   htsmsg_copy_field(conf, "stop_extra", in, "stopExtra");
   htsmsg_copy_field(conf, "pri", in, "priority");