From 2707b19583068c169c59114cad7c562195071ce2 Mon Sep 17 00:00:00 2001 From: hubobel Date: Sat, 29 Jul 2017 16:31:26 +0200 Subject: [PATCH] Methode "Kodiitem" modifiziert 2.0 --- Kodi_Class.py | 7 ++++++- Sound_lib.py | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Sound_lib.py 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