From 7fe12968a10fa1714eaebbddf3964557c511c701 Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 4 Sep 2018 16:32:39 +0200 Subject: [PATCH] Fix PKC trying to sync audio playlists even when audio sync disabled --- resources/lib/playlists/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/playlists/__init__.py b/resources/lib/playlists/__init__.py index 95442040..252388d3 100644 --- a/resources/lib/playlists/__init__.py +++ b/resources/lib/playlists/__init__.py @@ -254,11 +254,11 @@ def sync_plex_playlist(plex_id=None, xml=None, playlist=None): return False name = api.title() typus = v.KODI_PLAYLIST_TYPE_FROM_PLEX[api.playlist_type()] - if not state.SYNC_SPECIFIC_PLEX_PLAYLISTS: - return True if (not state.ENABLE_MUSIC and typus == v.PLEX_PLAYLIST_TYPE_AUDIO): LOG.debug('Not synching Plex audio playlist') return False + if not state.SYNC_SPECIFIC_PLEX_PLAYLISTS: + return True prefix = utils.settings('syncSpecificPlexPlaylistsPrefix').lower() if name and name.lower().startswith(prefix): return True