diff --git a/modules/core/monitor.py b/modules/core/monitor.py index da590fd5aca06a5198bb95ca2abf4d15bfb9dc78..0395a519bb885c8c2ba09b546bf52e424da40752 100644 --- a/modules/core/monitor.py +++ b/modules/core/monitor.py @@ -83,9 +83,8 @@ class Monitoring: Retrieves all input and outputs provided by the engine. """ ios = self.soundsystem.engine_state() - # ios = ios.replace("\\", "") + try: - # ios = ios.replace(": },", "''},") ios = ios.replace('"connected":', '"connected": ""') ios = json.loads(ios, strict=False) return ios @@ -163,6 +162,7 @@ class Monitoring: return status + def get_url_response(self, url): """ Fetches JSON data from the given URL.