From 866c58212c44c512035dea2d46cc501a05c41d60 Mon Sep 17 00:00:00 2001 From: grafixeyehero <32230989+grafixeyehero@users.noreply.github.com> Date: Sun, 7 Nov 2021 00:48:20 +0300 Subject: [PATCH 1/3] Fix-LiveTV-Default Tab index --- src/controllers/livetv/livetvsuggested.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/controllers/livetv/livetvsuggested.js b/src/controllers/livetv/livetvsuggested.js index 37a8adcd7..88ee0eea4 100644 --- a/src/controllers/livetv/livetvsuggested.js +++ b/src/controllers/livetv/livetvsuggested.js @@ -200,11 +200,20 @@ function setScrollClasses(elem, scrollX) { } function getDefaultTabIndex(folderId) { - if (userSettings.get('landing-' + folderId) === 'guide') { - return 1; + switch (userSettings.get('landing-' + folderId)) { + case 'guide': + return 1; + case 'channels': + return 2; + case 'recordings': + return 3; + case 'schedule': + return 4; + case 'series': + return 5; + default: + return 0; } - - return 0; } export default function (view, params) { From a2c2091ec9aedcbcdee3ef89bcdb84bc34224c29 Mon Sep 17 00:00:00 2001 From: grafixeyehero <32230989+grafixeyehero@users.noreply.github.com> Date: Sun, 7 Nov 2021 00:51:33 +0300 Subject: [PATCH 2/3] clean up unused search tab condition --- src/controllers/livetv.html | 2 -- src/controllers/livetv/livetvsuggested.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/controllers/livetv.html b/src/controllers/livetv.html index ad58aa76d..a5fe131e5 100644 --- a/src/controllers/livetv.html +++ b/src/controllers/livetv.html @@ -90,8 +90,6 @@
-
-
diff --git a/src/controllers/livetv/livetvsuggested.js b/src/controllers/livetv/livetvsuggested.js index 88ee0eea4..81df2c283 100644 --- a/src/controllers/livetv/livetvsuggested.js +++ b/src/controllers/livetv/livetvsuggested.js @@ -288,10 +288,6 @@ export default function (view, params) { if (index === 0) { controller = self; - } else if (index === 6) { - controller = new controllerFactory(view, tabContent, { - collectionType: 'livetv' - }); } else { controller = new controllerFactory(view, params, tabContent); } From 12eab29b8e1ddf06294903823365f73cf991d531 Mon Sep 17 00:00:00 2001 From: grafixeyehero <32230989+grafixeyehero@users.noreply.github.com> Date: Sun, 7 Nov 2021 01:08:59 +0300 Subject: [PATCH 3/3] Remove new line --- src/controllers/livetv.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/controllers/livetv.html b/src/controllers/livetv.html index a5fe131e5..b1f60f4ef 100644 --- a/src/controllers/livetv.html +++ b/src/controllers/livetv.html @@ -1,7 +1,5 @@
-
-
@@ -91,5 +89,4 @@
-