fix filesysem rescan function

This commit is contained in:
simon 2022-03-19 14:36:46 +07:00
parent b68a00073f
commit 3ba6e0478d
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,6 @@ class PendingIndex:
def get_indexed(self): def get_indexed(self):
"""get a list of all videos indexed""" """get a list of all videos indexed"""
self.all_videos = []
data = { data = {
"query": {"match_all": {}}, "query": {"match_all": {}},
"sort": [{"published": {"order": "desc"}}], "sort": [{"published": {"order": "desc"}}],

View File

@ -59,6 +59,7 @@ class FilesystemScanner:
def get_all_indexed(): def get_all_indexed():
"""get a list of all indexed videos""" """get a list of all indexed videos"""
index_handler = PendingList() index_handler = PendingList()
index_handler.get_download()
index_handler.get_indexed() index_handler.get_indexed()
all_indexed = [] all_indexed = []