From: kaliko Date: Sun, 9 May 2021 09:55:35 +0000 (+0200) Subject: simadb: Propagate add option X-Git-Tag: 0.18.0~55 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=dd6211f6f921c693774e17e894094637303575d0;p=mpd-sima.git simadb: Propagate add option --- diff --git a/sima/lib/simadb.py b/sima/lib/simadb.py index a66cbd0..5646a49 100644 --- a/sima/lib/simadb.py +++ b/sima/lib/simadb.py @@ -604,7 +604,7 @@ class SimaDB: connection = with_connection else: connection = self.get_database_connection() - track_id = self.get_track(track, with_connection=connection, add=True) + track_id = self.get_track(track, with_connection=connection, add=add) rows = connection.execute( "SELECT id FROM blocklist WHERE track = ?", (track_id,)) if not rows.fetchone(): @@ -629,7 +629,7 @@ class SimaDB: connection = with_connection else: connection = self.get_database_connection() - album_id = self.get_album(album, with_connection=connection, add=True) + album_id = self.get_album(album, with_connection=connection, add=add) rows = connection.execute( "SELECT id FROM blocklist WHERE album = ?", (album_id,)) if not rows.fetchone(): @@ -654,7 +654,7 @@ class SimaDB: connection = with_connection else: connection = self.get_database_connection() - artist_id = self.get_artist(artist, with_connection=connection, add=True) + artist_id = self.get_artist(artist, with_connection=connection, add=add) rows = connection.execute( "SELECT id FROM blocklist WHERE artist = ?", (artist_id,)) if not rows.fetchone():