]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
autorec: restore channel tag function in idnode model
authorIan <ian@sproink.co.uk>
Thu, 28 Aug 2014 14:22:26 +0000 (15:22 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 1 Sep 2014 14:03:16 +0000 (16:03 +0200)
src/dvr/dvr_autorec.c
src/webui/static/app/epg.js

index 21cadbb3e4efad1a556658724343c3d1b106382d..f477d3967effc395523a5764165024361834c88b 100644 (file)
@@ -560,7 +560,7 @@ _dvr_autorec_add(const char *config_name,
     dae->dae_title = strdup(title);
   }
 
-  if(tag != NULL && (ct = channel_tag_find_by_name(tag, 0)) != NULL) {
+  if(tag != NULL && (ct = channel_tag_find_by_uuid(tag)) != NULL) {
     LIST_INSERT_HEAD(&ct->ct_autorecs, dae, dae_channel_tag_link);
     dae->dae_channel_tag = ct;
   }
index 5708df16e526291c027c656fd4f80dba60ed986f..add7723faaa3fa6362b08a119a6b35e03b4c26d7 100644 (file)
@@ -49,6 +49,17 @@ tvheadend.channelLookupName = function(key) {
     return channelString;
 };
 
+tvheadend.tagLookupName = function(key) {
+    tagString = "";
+
+    var index = tvheadend.channelTags.find('key', key);
+
+    if (index !== -1)
+        var tagString = tvheadend.channelTags.getAt(index).get('val');
+
+    return tagString;
+};
+
 // Store for duration filters - EPG, autorec dialog and autorec rules in the DVR grid
 // NB: 'no max' is defined as 9999999s, or about 3 months...
 
@@ -637,7 +648,7 @@ tvheadend.epg = function() {
                 : "<i>Don't care</i>";
         var channel = epgStore.baseParams.channel ? tvheadend.channelLookupName(epgStore.baseParams.channel)
                 : "<i>Don't care</i>";
-        var tag = epgStore.baseParams.tag ? epgStore.baseParams.tag
+        var tag = epgStore.baseParams.tag ? tvheadend.tagLookupName(epgStore.baseParams.tag)
                 : "<i>Don't care</i>";
         var contenttype = epgStore.baseParams.contenttype ? tvheadend.contentGroupLookupName(epgStore.baseParams.contenttype)
                 : "<i>Don't care</i>";