Fix AttributeError

This commit is contained in:
croneter 2018-11-20 18:39:18 +01:00
parent d668b3e640
commit 2aadcbd198
2 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ class ContextMenu(object):
# if user uses direct paths, give option to initiate playback via PMS
if self.api and self.api.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'])
if self.kodi_type in v.KODI_VIDEOTYPES:
options.append(OPTIONS['Transcode'])

View file

@ -202,7 +202,7 @@ class PlayqueueMonitor(backgroundthread.KillableThread):
for playqueue in PLAYQUEUES:
kodi_pl = js.playlist_get_items(playqueue.playlistid)
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):
# Only initialize if directly fired up using direct
# paths. Otherwise let default.py do its magic