mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-07 12:19:29 +01:00
Fixed minor issue where manual 'have' tracks would be unmatched if a local file was deleted.
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user