Fix PKC trying to sync audio playlists even when audio sync disabled
This commit is contained in:
parent
9db059845c
commit
7fe12968a1
1 changed files with 2 additions and 2 deletions
|
@ -254,11 +254,11 @@ def sync_plex_playlist(plex_id=None, xml=None, playlist=None):
|
||||||
return False
|
return False
|
||||||
name = api.title()
|
name = api.title()
|
||||||
typus = v.KODI_PLAYLIST_TYPE_FROM_PLEX[api.playlist_type()]
|
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):
|
if (not state.ENABLE_MUSIC and typus == v.PLEX_PLAYLIST_TYPE_AUDIO):
|
||||||
LOG.debug('Not synching Plex audio playlist')
|
LOG.debug('Not synching Plex audio playlist')
|
||||||
return False
|
return False
|
||||||
|
if not state.SYNC_SPECIFIC_PLEX_PLAYLISTS:
|
||||||
|
return True
|
||||||
prefix = utils.settings('syncSpecificPlexPlaylistsPrefix').lower()
|
prefix = utils.settings('syncSpecificPlexPlaylistsPrefix').lower()
|
||||||
if name and name.lower().startswith(prefix):
|
if name and name.lower().startswith(prefix):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue