add to done
This commit is contained in:
parent
d43642c070
commit
d91c28db0a
1 changed files with 1 additions and 1 deletions
|
@ -102,8 +102,8 @@ def main(**kwargs):
|
||||||
wait = True
|
wait = True
|
||||||
for item in queue.get_items(queue.user).all():
|
for item in queue.get_items(queue.user).all():
|
||||||
if extract_subtitles(item, user, layer, translate, kwargs.get("gpu")):
|
if extract_subtitles(item, user, layer, translate, kwargs.get("gpu")):
|
||||||
|
done.items.add(item)
|
||||||
queue.items.remove(item)
|
queue.items.remove(item)
|
||||||
done.items.remove(item)
|
|
||||||
wait = False
|
wait = False
|
||||||
if wait:
|
if wait:
|
||||||
time.sleep(5*60)
|
time.sleep(5*60)
|
||||||
|
|
Loading…
Reference in a new issue