mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix missing apiclient on other PlayUtils actions
This commit is contained in:
parent
a3ce3ae4fa
commit
bceeff4754
1 changed files with 3 additions and 3 deletions
|
@ -151,7 +151,7 @@ class Actions(object):
|
||||||
listitem = xbmcgui.ListItem()
|
listitem = xbmcgui.ListItem()
|
||||||
LOG.info("[ part/%s ] %s", part['Id'], part['Name'])
|
LOG.info("[ part/%s ] %s", part['Id'], part['Name'])
|
||||||
|
|
||||||
play = playutils.PlayUtils(part, False, self.server_id, self.server)
|
play = playutils.PlayUtils(part, False, self.server_id, self.server, self.api_client)
|
||||||
source = play.select_source(play.get_sources())
|
source = play.select_source(play.get_sources())
|
||||||
play.set_external_subs(source, listitem)
|
play.set_external_subs(source, listitem)
|
||||||
self.set_listitem(part, listitem)
|
self.set_listitem(part, listitem)
|
||||||
|
@ -182,7 +182,7 @@ class Actions(object):
|
||||||
listitem = xbmcgui.ListItem()
|
listitem = xbmcgui.ListItem()
|
||||||
LOG.info("[ playlist/%s ] %s", item['Id'], item['Name'])
|
LOG.info("[ playlist/%s ] %s", item['Id'], item['Name'])
|
||||||
|
|
||||||
play = playutils.PlayUtils(item, False, self.server_id, self.server)
|
play = playutils.PlayUtils(item, False, self.server_id, self.server, self.api_client)
|
||||||
source = play.select_source(play.get_sources())
|
source = play.select_source(play.get_sources())
|
||||||
play.set_external_subs(source, listitem)
|
play.set_external_subs(source, listitem)
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ class Actions(object):
|
||||||
server_address, item['Id'], token)
|
server_address, item['Id'], token)
|
||||||
listitem.setPath(path)
|
listitem.setPath(path)
|
||||||
|
|
||||||
play = playutils.PlayUtils(item, False, self.server_id, self.server)
|
play = playutils.PlayUtils(item, False, self.server_id, self.server, self.api_client)
|
||||||
source = play.select_source(play.get_sources())
|
source = play.select_source(play.get_sources())
|
||||||
play.set_external_subs(source, listitem)
|
play.set_external_subs(source, listitem)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue