From 260ff230c5c98ceab1e624c3ac6e8d8cdfef92e9 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 2 Dec 2018 17:01:19 +0100 Subject: [PATCH] Don't check whether we need to delete "Artist" role for songs --- resources/lib/kodi_db/music.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/resources/lib/kodi_db/music.py b/resources/lib/kodi_db/music.py index cbe3af4b..c9d4491a 100644 --- a/resources/lib/kodi_db/music.py +++ b/resources/lib/kodi_db/music.py @@ -75,13 +75,6 @@ class KodiMusicDB(common.KodiDBBase): # Delete the entry self.cursor.execute('DELETE FROM song_artist WHERE idSong = ?', (song_id, )) - # Check whether we need to delete orphaned roles - self.cursor.execute('SELECT idRole FROM song_artist WHERE idRole = ? LIMIT 1', - (artist[1], )) - if not self.cursor.fetchone(): - # Delete orphaned role - self.cursor.execute('DELETE FROM role WHERE idRole = ?', - (artist[1], )) def delete_album_from_discography(self, album_id): """