Fix AttributeErrors for Plex playlist id
This commit is contained in:
parent
7b64b794f2
commit
e2c90ac0f4
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue