feat: directory cache
This commit is contained in:
@ -298,6 +298,7 @@ class BasePlaylist(list):
|
||||
if not item.validate() or item.is_failed():
|
||||
self.log.debug("playlist: validating failed.")
|
||||
self.remove_by_id(item.id)
|
||||
var.library.delete(item.item())
|
||||
|
||||
self.log.debug("playlist: validating finished.")
|
||||
self.validating_thread_lock.release()
|
||||
@ -422,6 +423,10 @@ class AutoPlaylist(BasePlaylist):
|
||||
# self.refresh()
|
||||
# return self
|
||||
|
||||
def clear(self):
|
||||
super().clear()
|
||||
self.refresh()
|
||||
|
||||
def next(self):
|
||||
if len(self) == 0:
|
||||
return False
|
||||
|
Reference in New Issue
Block a user