Fix PKC creating thousands of playlists if there are 2 identical Kodi playlists
This commit is contained in:
parent
6e67429133
commit
fb76f49fbd
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ def initialize():
|
||||||
'CREATE INDEX IF NOT EXISTS ix_track_1 ON track (last_sync)',
|
'CREATE INDEX IF NOT EXISTS ix_track_1 ON track (last_sync)',
|
||||||
'CREATE UNIQUE INDEX IF NOT EXISTS ix_track_2 ON track (kodi_id)',
|
'CREATE UNIQUE INDEX IF NOT EXISTS ix_track_2 ON track (kodi_id)',
|
||||||
'CREATE UNIQUE INDEX IF NOT EXISTS ix_playlists_2 ON playlists (kodi_path)',
|
'CREATE UNIQUE INDEX IF NOT EXISTS ix_playlists_2 ON playlists (kodi_path)',
|
||||||
'CREATE UNIQUE INDEX IF NOT EXISTS ix_playlists_3 ON playlists (kodi_hash)',
|
'CREATE INDEX IF NOT EXISTS ix_playlists_3 ON playlists (kodi_hash)',
|
||||||
)
|
)
|
||||||
for cmd in commands:
|
for cmd in commands:
|
||||||
plexdb.cursor.execute(cmd)
|
plexdb.cursor.execute(cmd)
|
||||||
|
|
Loading…
Reference in a new issue