From 2aadcbd19823a1e5b38f7f330a78a36e03879d9f Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 20 Nov 2018 18:39:18 +0100 Subject: [PATCH] Fix AttributeError --- resources/lib/context_entry.py | 2 +- resources/lib/playqueue.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/context_entry.py b/resources/lib/context_entry.py index 38804a71..e648ea06 100644 --- a/resources/lib/context_entry.py +++ b/resources/lib/context_entry.py @@ -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']) diff --git a/resources/lib/playqueue.py b/resources/lib/playqueue.py index 2b616d75..e145255b 100644 --- a/resources/lib/playqueue.py +++ b/resources/lib/playqueue.py @@ -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