diff --git a/Kodi_Class.py b/Kodi_Class.py index b055fef..a6b877a 100644 --- a/Kodi_Class.py +++ b/Kodi_Class.py @@ -62,7 +62,12 @@ class kodi(): return koditems items = {"episode": "","width": "","duration":"","type":""} -wz = kodi() +sz = kodi("10.0.1.101") +wz = kodi("10.0.1.102") + +print(sz.kodiitem()) +print(sz.JSON_holen) print(wz.kodiitem()) print(wz.JSON_holen) + diff --git a/Sound_lib.py b/Sound_lib.py new file mode 100644 index 0000000..5b572f5 --- /dev/null +++ b/Sound_lib.py @@ -0,0 +1,6 @@ +from libsoundtouch import discover_devices + +devices = discover_devices(timeout=2) # Default timeout is 5 seconds + +for device in devices: + print(device.config.name + " - " + device.config.type) \ No newline at end of file