1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 10:46:58 -05:00
fHDHR_NextPVR/fHDHR/fHDHRweb/fHDHRdevice/debug_json.py
2020-10-14 19:30:15 -04:00

17 lines
464 B
Python

import json
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,
"total channels": self.origserv.get_station_total(),
"tuner status": tuners.status(),
}
return json.dumps(debugjson, indent=4)