Fix AttributeError
This commit is contained in:
parent
d668b3e640
commit
2aadcbd198
2 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ class ContextMenu(object):
|
||||||
# if user uses direct paths, give option to initiate playback via PMS
|
# if user uses direct paths, give option to initiate playback via PMS
|
||||||
if self.api and self.api.extras():
|
if self.api and self.api.extras():
|
||||||
options.append(OPTIONS['Extras'])
|
options.append(OPTIONS['Extras'])
|
||||||
if app.PLAYSTATE.direct_paths and self.kodi_type in v.KODI_VIDEOTYPES:
|
if app.SYNC.direct_paths and self.kodi_type in v.KODI_VIDEOTYPES:
|
||||||
options.append(OPTIONS['PMS_Play'])
|
options.append(OPTIONS['PMS_Play'])
|
||||||
if self.kodi_type in v.KODI_VIDEOTYPES:
|
if self.kodi_type in v.KODI_VIDEOTYPES:
|
||||||
options.append(OPTIONS['Transcode'])
|
options.append(OPTIONS['Transcode'])
|
||||||
|
|
|
@ -202,7 +202,7 @@ class PlayqueueMonitor(backgroundthread.KillableThread):
|
||||||
for playqueue in PLAYQUEUES:
|
for playqueue in PLAYQUEUES:
|
||||||
kodi_pl = js.playlist_get_items(playqueue.playlistid)
|
kodi_pl = js.playlist_get_items(playqueue.playlistid)
|
||||||
if playqueue.old_kodi_pl != kodi_pl:
|
if playqueue.old_kodi_pl != kodi_pl:
|
||||||
if playqueue.id is None and (not app.PLAYSTATE.direct_paths or
|
if playqueue.id is None and (not app.SYNC.direct_paths or
|
||||||
app.PLAYSTATE.context_menu_play):
|
app.PLAYSTATE.context_menu_play):
|
||||||
# Only initialize if directly fired up using direct
|
# Only initialize if directly fired up using direct
|
||||||
# paths. Otherwise let default.py do its magic
|
# paths. Otherwise let default.py do its magic
|
||||||
|
|
Loading…
Reference in a new issue