From 3ba6e0478d7e1f1e815502a6700f76ab3ff0bcb6 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 19 Mar 2022 14:36:46 +0700 Subject: [PATCH] fix filesysem rescan function --- tubearchivist/home/src/download/queue.py | 1 - tubearchivist/home/src/index/filesystem.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/download/queue.py b/tubearchivist/home/src/download/queue.py index 26d8e216..71075a41 100644 --- a/tubearchivist/home/src/download/queue.py +++ b/tubearchivist/home/src/download/queue.py @@ -52,7 +52,6 @@ class PendingIndex: def get_indexed(self): """get a list of all videos indexed""" - self.all_videos = [] data = { "query": {"match_all": {}}, "sort": [{"published": {"order": "desc"}}], diff --git a/tubearchivist/home/src/index/filesystem.py b/tubearchivist/home/src/index/filesystem.py index 9601fdc2..0dc8302d 100644 --- a/tubearchivist/home/src/index/filesystem.py +++ b/tubearchivist/home/src/index/filesystem.py @@ -59,6 +59,7 @@ class FilesystemScanner: def get_all_indexed(): """get a list of all indexed videos""" index_handler = PendingList() + index_handler.get_download() index_handler.get_indexed() all_indexed = []