From 98ba2b8caa7d40046af40d07056ece4d11b7b896 Mon Sep 17 00:00:00 2001 From: Croneter Date: Wed, 4 Jul 2018 07:46:30 +0200 Subject: [PATCH] Ignore case when deciding whether to sync playlists --- resources/lib/playlists.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/playlists.py b/resources/lib/playlists.py index 37c63729..0f172e10 100644 --- a/resources/lib/playlists.py +++ b/resources/lib/playlists.py @@ -94,8 +94,8 @@ def create_kodi_playlist(plex_id=None, updated_at=None): raise PL.PlaylistError('Could not get Plex playlist %s' % plex_id) api = API(xml) if state.SYNC_SPECIFIC_PLEX_PLAYLISTS: - prefix = utils.settings('syncSpecificPlexPlaylistsPrefix') - if api.title() and not api.title().startswith(prefix): + prefix = utils.settings('syncSpecificPlexPlaylistsPrefix').lower() + if api.title() and not api.title().lower().startswith(prefix): LOG.debug('User chose to not sync playlist %s', api.title()) return playlist = PL.Playlist_Object() @@ -451,8 +451,8 @@ def sync_kodi_playlist(path): except PL.PlaylistError: pass else: - prefix = utils.settings('syncSpecificKodiPlaylistsPrefix') - if playlist.kodi_filename.startswith(prefix): + prefix = utils.settings('syncSpecificKodiPlaylistsPrefix').lower() + if playlist.kodi_filename.lower().startswith(prefix): return True return False