mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 11:26:57 -05:00
Add Channel Count To Debug Json
This commit is contained in:
parent
c2f691e5bc
commit
ebf3b89e86
@ -5,10 +5,12 @@ class Debug_JSON():
|
|||||||
|
|
||||||
def __init__(self, settings, origserv, epghandling):
|
def __init__(self, settings, origserv, epghandling):
|
||||||
self.config = settings
|
self.config = settings
|
||||||
|
self.origserv = origserv
|
||||||
|
|
||||||
def get_debug_json(self, base_url, tuners):
|
def get_debug_json(self, base_url, tuners):
|
||||||
debugjson = {
|
debugjson = {
|
||||||
"base_url": base_url,
|
"base_url": base_url,
|
||||||
"available tuners": tuners
|
"available tuners": tuners,
|
||||||
|
"total channels": self.origserv.get_station_total()
|
||||||
}
|
}
|
||||||
return json.dumps(debugjson, indent=4)
|
return json.dumps(debugjson, indent=4)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user