mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Reset rescan flag
This commit is contained in:
parent
308a8ec947
commit
e8ab4945f0
1 changed files with 3 additions and 0 deletions
|
@ -376,6 +376,9 @@ class Library(threading.Thread):
|
||||||
items = db.get_item_by_media_folder(library_id)
|
items = db.get_item_by_media_folder(library_id)
|
||||||
media = 'music' if library[1] == 'music' else 'video'
|
media = 'music' if library[1] == 'music' else 'video'
|
||||||
|
|
||||||
|
if media == 'music':
|
||||||
|
settings('MusicRescan.bool', False)
|
||||||
|
|
||||||
if items:
|
if items:
|
||||||
with self.music_database_lock if media == 'music' else self.database_lock:
|
with self.music_database_lock if media == 'music' else self.database_lock:
|
||||||
with Database(media) as kodidb:
|
with Database(media) as kodidb:
|
||||||
|
|
Loading…
Reference in a new issue