Reset rescan flag

This commit is contained in:
angelblue05 2018-09-14 03:22:48 -05:00
parent 308a8ec947
commit e8ab4945f0

View File

@ -376,6 +376,9 @@ class Library(threading.Thread):
items = db.get_item_by_media_folder(library_id)
media = 'music' if library[1] == 'music' else 'video'
if media == 'music':
settings('MusicRescan.bool', False)
if items:
with self.music_database_lock if media == 'music' else self.database_lock:
with Database(media) as kodidb: