From 6ebd26ecfd2a83557f176fb5dd559ed389775f14 Mon Sep 17 00:00:00 2001 From: theguardian Date: Wed, 23 Oct 2013 17:31:21 -0700 Subject: [PATCH] Fixed minor issue where manual 'have' tracks would be unmatched if a local file was deleted. --- headphones/librarysync.py | 1 - 1 file changed, 1 deletion(-) diff --git a/headphones/librarysync.py b/headphones/librarysync.py index a9f76d11..cda014e6 100644 --- a/headphones/librarysync.py +++ b/headphones/librarysync.py @@ -61,7 +61,6 @@ def libraryScan(dir=None, append=False, ArtistID=None, ArtistName=None, cron=Fal encoded_track_string = track['Location'].encode(headphones.SYS_ENCODING) if not os.path.isfile(encoded_track_string): myDB.action('DELETE FROM have WHERE Location=?', [track['Location']]) - myDB.action('UPDATE have SET Matched=NULL WHERE Matched=?', [track['Matched']]) logger.info('File %s removed from Headphones, as it is no longer on disk' % encoded_track_string.decode(headphones.SYS_ENCODING, 'replace')) ###############myDB.action('DELETE from have')