Fix RuntimeErrors
This commit is contained in:
parent
146f063fc9
commit
cddde19cce
1 changed files with 5 additions and 4 deletions
|
@ -34,12 +34,13 @@ addonName = "PlexKodiConnect"
|
||||||
|
|
||||||
class PlaybackUtils():
|
class PlaybackUtils():
|
||||||
|
|
||||||
def __init__(self, item, callback):
|
def __init__(self, item, callback=None):
|
||||||
self.mgr = callback
|
if callback:
|
||||||
|
self.mgr = callback
|
||||||
|
self.playqueue = self.mgr.playqueue.get_playqueue_from_type(
|
||||||
|
KODI_PLAYLIST_TYPE_FROM_PLEX_TYPE[self.api.getType()])
|
||||||
self.item = item
|
self.item = item
|
||||||
self.api = API(item)
|
self.api = API(item)
|
||||||
self.playqueue = self.mgr.playqueue.get_playqueue_from_type(
|
|
||||||
KODI_PLAYLIST_TYPE_FROM_PLEX_TYPE[self.api.getType()])
|
|
||||||
|
|
||||||
def play(self, plex_id, kodi_id=None, plex_lib_UUID=None):
|
def play(self, plex_id, kodi_id=None, plex_lib_UUID=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue