From ebf3b89e86a7519829d59170fbea59ba4a3e19ef Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 13 Oct 2020 17:04:41 -0400 Subject: [PATCH] Add Channel Count To Debug Json --- fHDHR/fHDHRweb/fHDHRdevice/debug_json.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fHDHR/fHDHRweb/fHDHRdevice/debug_json.py b/fHDHR/fHDHRweb/fHDHRdevice/debug_json.py index a82ee0c..a271ba4 100644 --- a/fHDHR/fHDHRweb/fHDHRdevice/debug_json.py +++ b/fHDHR/fHDHRweb/fHDHRdevice/debug_json.py @@ -5,10 +5,12 @@ class Debug_JSON(): def __init__(self, settings, origserv, epghandling): self.config = settings + self.origserv = origserv def get_debug_json(self, base_url, tuners): debugjson = { "base_url": base_url, - "available tuners": tuners + "available tuners": tuners, + "total channels": self.origserv.get_station_total() } return json.dumps(debugjson, indent=4)