diff --git a/resources/lib/playlists.py b/resources/lib/playlists.py index 2d962acb..347714f2 100644 --- a/resources/lib/playlists.py +++ b/resources/lib/playlists.py @@ -33,7 +33,7 @@ DEFAULT_ENCODING = sys.getdefaultencoding() def create_plex_playlist(playlist=None, path=None): """ - Adds the playlist [Playlist_Object] to the PMS. If playlist.plex_id is + Adds the playlist [Playlist_Object] to the PMS. If playlist.id is not None the existing Plex playlist will be overwritten; otherwise a new playlist will be generated and stored accordingly in the playlist object. diff --git a/resources/lib/plexdb_functions.py b/resources/lib/plexdb_functions.py index b31ef8a6..b4ebdeae 100644 --- a/resources/lib/plexdb_functions.py +++ b/resources/lib/plexdb_functions.py @@ -452,7 +452,7 @@ class Plex_DB_Functions(): answ = self.plexcursor.fetchone() if not answ: return - playlist.plex_id = answ[0] + playlist.id = answ[0] playlist.plex_name = answ[1] playlist.plex_updatedat = answ[2] playlist.kodi_path = answ[3] @@ -471,7 +471,7 @@ class Plex_DB_Functions(): VALUES (?, ?, ?, ?, ?, ?) ''' self.plexcursor.execute(query, - (playlist.plex_id, playlist.plex_name, + (playlist.id, playlist.plex_name, playlist.plex_updatedat, playlist.kodi_path, playlist.kodi_type, playlist.kodi_hash))