mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-03-15 18:30:12 +00:00
fix rescan without task
This commit is contained in:
parent
f848e73251
commit
60f1809ed8
@ -249,7 +249,8 @@ class Reindex(ReindexBase):
|
||||
reindex = self.get_reindex_map(index_config["index_name"])
|
||||
youtube_id = RedisQueue(index_config["queue_name"]).get_next()
|
||||
if youtube_id:
|
||||
self._notify(name, index_config, total)
|
||||
if self.task:
|
||||
self._notify(name, index_config, total)
|
||||
reindex(youtube_id)
|
||||
sleep_interval = self.config["downloads"].get("sleep_interval", 0)
|
||||
sleep(sleep_interval)
|
||||
|
Loading…
Reference in New Issue
Block a user