Don't check whether we need to delete "Artist" role for songs
This commit is contained in:
parent
64b8c522af
commit
260ff230c5
1 changed files with 0 additions and 7 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue