]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix: Missing Episode column in webui since commit #37db5d9 and typo mismatch in dvr_d...
authorpablozg <pablozg@gmail.com>
Mon, 15 Jan 2018 09:54:20 +0000 (10:54 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Jan 2018 10:06:51 +0000 (11:06 +0100)
src/dvr/dvr_db.c
src/webui/static/app/dvr.js

index 17af2a43da1bd1811d9ad11bccac178b59893765..b00c320be2ee77722912647ea2687c81de00e87a 100644 (file)
@@ -3242,7 +3242,7 @@ dvr_entry_class_disp_episode_get(void *o)
   if (de->de_epnum.e_num) {
     lang = idnode_lang(o);
     snprintf(buf1, sizeof(buf1), "%s %%d", tvh_gettext_lang(lang, N_("Season")));
-    snprintf(buf1, sizeof(buf1), "%s %%d", tvh_gettext_lang(lang, N_("Episode")));
+    snprintf(buf2, sizeof(buf2), "%s %%d", tvh_gettext_lang(lang, N_("Episode")));
     epg_episode_epnum_format(&de->de_epnum, prop_sbuf, PROP_SBUF_LEN, NULL,
                              buf1, ".", buf2, "/%d");
     return &prop_sbuf_ptr;
index 5f75f8e3a2331e911142290fac9d621e7a0f9b1f..749a2b6922131f6a83a8209a82fda88c42eac08f 100644 (file)
@@ -144,7 +144,7 @@ tvheadend.dvrDetails = function(uuid) {
         url: 'api/idnode/load',
         params: {
             uuid: uuid,
-            list: 'channel_icon,disp_title,disp_subtitle,disp_summary,episode,start_real,stop_real,' +
+            list: 'channel_icon,disp_title,disp_subtitle,disp_summary,episode_disp,start_real,stop_real,' +
                   'duration,disp_description,status,filesize,comment,duplicate,' +
                   'autorec_caption,timerec_caption,image,copyright_year,credits,keyword,category,' +
                   'first_aired,genre',
@@ -419,7 +419,7 @@ tvheadend.dvr_upcoming = function(panel, index) {
             }
         },
         del: true,
-        list: 'category,enabled,duplicate,disp_title,disp_subtitle,disp_summary,episode,' +
+        list: 'category,enabled,duplicate,disp_title,disp_subtitle,disp_summary,episode_disp,' +
               'channel,image,copyright_year,start_real,stop_real,duration,pri,filesize,' +
               'sched_status,errors,data_errors,config_name,owner,creator,comment,genre',
         columns: {
@@ -597,7 +597,7 @@ tvheadend.dvr_finished = function(panel, index) {
             }
         },
         del: false,
-        list: 'disp_title,disp_subtitle,disp_summary,episode,channelname,' +
+        list: 'disp_title,disp_subtitle,disp_summary,episode_disp,channelname,' +
               'start_real,stop_real,duration,filesize,copyright_year,' +
               'sched_status,errors,data_errors,playcount,url,config_name,owner,creator,comment,',
         columns: {
@@ -621,8 +621,8 @@ tvheadend.dvr_finished = function(panel, index) {
                 tooltip: _("Play"),
                 renderer: function(v, o, r) {
                     var title = r.data['disp_title'];
-                    if (r.data['episode'])
-                        title += ' / ' + r.data['episode'];
+                    if (r.data['episode_disp'])
+                        title += ' / ' + r.data['episode_disp'];
                     return tvheadend.playLink('play/dvrfile/' + r.id, title);
                 }
             }],
@@ -713,7 +713,7 @@ tvheadend.dvr_failed = function(panel, index) {
         del: true,
         delquestion: _('Do you really want to delete the selected recordings?') + '<br/><br/>' +
                      _('The associated file will be removed from storage.'),
-        list: 'disp_title,disp_subtitle,disp_summary,episode,channelname,' +
+        list: 'disp_title,disp_subtitle,disp_summary,episode_disp,channelname,' +
               'image,copyright_year,start_real,stop_real,duration,filesize,status,' +
               'sched_status,errors,data_errors,playcount,url,config_name,owner,creator,comment',
         columns: {
@@ -737,8 +737,8 @@ tvheadend.dvr_failed = function(panel, index) {
                 tooltip: _("Play"),
                 renderer: function(v, o, r) {
                     var title = r.data['disp_title'];
-                    if (r.data['episode'])
-                        title += ' / ' + r.data['episode'];
+                    if (r.data['episode_disp'])
+                        title += ' / ' + r.data['episode_disp'];
                     return tvheadend.playLink('play/dvrfile/' + r.id, title);
                 }
             }],
@@ -788,7 +788,7 @@ tvheadend.dvr_removed = function(panel, index) {
         uilevel: 'expert',
         edit: { params: { list: tvheadend.admin ? "retention,owner,comment" : "retention,comment" } },
         del: true,
-        list: 'disp_title,disp_subtitle,disp_summary,episode,channelname,image,' +
+        list: 'disp_title,disp_subtitle,disp_summary,episode_disp,channelname,image,' +
               'copyright_year,start_real,stop_real,duration,status,' +
               'sched_status,errors,data_errors,url,config_name,owner,creator,comment',
         columns: {