mirror of
https://github.com/sudoxnym/fin-assistant.git
synced 2026-04-14 11:37:38 +00:00
Var initit (fixes #8)
This commit is contained in:
parent
b76040e947
commit
5221f19504
1 changed files with 6 additions and 0 deletions
|
|
@ -643,6 +643,9 @@ class JellyfinClientManager(object):
|
|||
self.jf_client.stop()
|
||||
time.sleep(timeout)
|
||||
if self.login():
|
||||
self.jf_client.callback = event
|
||||
self.jf_client.callback_ws = event
|
||||
self.jf_client.start(True)
|
||||
break
|
||||
elif event_name in ("LibraryChanged", "UserDataChanged"):
|
||||
for sensor in self.hass.data[DOMAIN][self.host]["sensor"]["entities"]:
|
||||
|
|
@ -1227,6 +1230,9 @@ class JellyfinClientManager(object):
|
|||
if selected is None:
|
||||
return (None, None, None)
|
||||
|
||||
url = ""
|
||||
mimetype = "none/none"
|
||||
info = "Not playable"
|
||||
if selected["SupportsDirectStream"]:
|
||||
if media_content_type in ("Audio", "track"):
|
||||
mimetype = "audio/" + selected["Container"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue