Methode "Kodiitem" modifiziert 2.0

This commit is contained in:
hubobel 2017-07-29 16:31:26 +02:00
parent 69704d4daf
commit 2707b19583
2 changed files with 12 additions and 1 deletions

View file

@ -62,7 +62,12 @@ class kodi():
return koditems return koditems
items = {"episode": "","width": "","duration":"","type":""} 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.kodiitem())
print(wz.JSON_holen) print(wz.JSON_holen)

6
Sound_lib.py Normal file
View file

@ -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)