|
|
@@ -77,9 +77,10 @@ class Discoverer(CyclicThread):
|
|
|
continue
|
|
|
|
|
|
filename = Path(filename)
|
|
|
- if not filename.exists():
|
|
|
+ if not filename.exists() and track.status != Track.STATUS_UNAVAILABLE:
|
|
|
self.indexer.put(track.id)
|
|
|
|
|
|
+
|
|
|
class Indexer(CyclicThread):
|
|
|
|
|
|
def __init__(self):
|
|
|
@@ -116,7 +117,7 @@ class Indexer(CyclicThread):
|
|
|
filename = Path(track.path)
|
|
|
track_hash = track.hash
|
|
|
|
|
|
- if not filename.exists():
|
|
|
+ if not filename.exists() and track.status != Track.STATUS_UNAVAILABLE:
|
|
|
logger.debug('Index - missing: %s' % filename)
|
|
|
track.status = Track.STATUS_UNAVAILABLE
|
|
|
track_repo.commit()
|