]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix _dvr_entry_update to allow update of retention, removal, title and subtitle for...
authorKai Sommerfeld <kai.sommerfeld@gmx.com>
Mon, 3 Jul 2017 10:48:54 +0000 (12:48 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 4 Jul 2017 16:41:14 +0000 (18:41 +0200)
src/dvr/dvr_db.c
src/htsp_server.c

index 5adb0b12ea642518df01e4c74bed2ec4c6f213a6..828ca1a4a4198390e715667afd1748dbab7edfd7 100644 (file)
@@ -1726,6 +1726,20 @@ static dvr_entry_t *_dvr_entry_update
         de->de_playposition = playposition;
         save |= DVR_UPDATED_PLAYPOS;
       }
+      if (retention && (retention != de->de_retention)) {
+        de->de_retention = retention;
+        save |= DVR_UPDATED_RETENTION;
+      }
+      if (removal && (removal != de->de_removal)) {
+        de->de_removal = removal;
+        save |= DVR_UPDATED_REMOVAL;
+      }
+      if (title) {
+        save |= lang_str_set(&de->de_title, title, lang) ? DVR_UPDATED_TITLE : 0;
+      }
+      if (subtitle) {
+        save |= lang_str_set(&de->de_subtitle, subtitle, lang) ? DVR_UPDATED_SUBTITLE : 0;
+      }
     }
     goto dosave;
   }
index 42409f333dab90b3e19861728e18d552db2c6497..f2b140fa8de658870a56dbeb08e214770eecfc80 100644 (file)
@@ -66,7 +66,7 @@
 
 static void *htsp_server, *htsp_server_2;
 
-#define HTSP_PROTO_VERSION 27
+#define HTSP_PROTO_VERSION 28
 
 #define HTSP_ASYNC_OFF  0x00
 #define HTSP_ASYNC_ON   0x01