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): """