From ecce7afc43cecfcf5b35f7b26e9c9aa0ba26a44c Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 29 Jul 2020 23:03:26 -0400
Subject: [PATCH] slight revert

---
 src/pregmod/FCTV/FCTVBC.js | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/pregmod/FCTV/FCTVBC.js b/src/pregmod/FCTV/FCTVBC.js
index 151055542cc..820799a07fe 100644
--- a/src/pregmod/FCTV/FCTVBC.js
+++ b/src/pregmod/FCTV/FCTVBC.js
@@ -5,6 +5,15 @@ App.Update.FCTV = function() {
 		return V.FCTVreceiver ? a : b;
 	}
 
+	function initChannels() {
+		const channelList = FCTV.channels();
+		for (let i = 0; i < channelList.length; i++) {
+			const channel = num(channelList[i], true);
+			const currentChannel = 'show' + capFirstChar(channel);
+			V.FCTV.channel[channel] = convert(V[currentChannel], V.FCTV.channel[channel]) || 0;
+		}
+	}
+
 	V.FCTV = V.FCTV || {};
 	V.FCTV.receiver = V.FCTV.receiver > -1 ? V.FCTV.receiver : -1;
 	if (convert && V.receiverAvailable) {
@@ -12,7 +21,7 @@ App.Update.FCTV = function() {
 	}
 	V.FCTV.pcViewership = V.FCTV.pcViewership || {};
 	V.FCTV.channel = V.FCTV.channel || {};
-	channelsBC();
+	initChannels();
 	V.FCTV.channel.last = convert(V.lastShow, V.FCTV.channel.last) || -1;
 
 	V.FCTV.pcViewership.count = convert(V.FCTVcount, V.FCTV.pcViewership.count) || 0;
@@ -22,12 +31,4 @@ App.Update.FCTV = function() {
 	if (V.FCTVreceiver && !V.FCTV.weekEnabled) {
 		V.FCTV.weekEnabled = V.receiverAvailable > 1 ? V.receiverAvailable : 0;
 	}
-
-	function channelsBC() {
-		const channelList = FCTV.channels();
-		for (let i = 0; i < channelList.length; i++) {
-			const channel = num(channelList[i], true);
-			V.FCTV.channel[channel] = V.FCTV.channel[channel] || 0;
-		}
-	}
 };
-- 
GitLab