add to done

This commit is contained in:
j 2024-07-08 15:43:23 +01:00
parent d43642c070
commit d91c28db0a

View file

@ -102,8 +102,8 @@ def main(**kwargs):
wait = True
for item in queue.get_items(queue.user).all():
if extract_subtitles(item, user, layer, translate, kwargs.get("gpu")):
done.items.add(item)
queue.items.remove(item)
done.items.remove(item)
wait = False
if wait:
time.sleep(5*60)