From 9e7b8445eb7a1e85983c4bdf88a51f86c8d4b785 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 14 Feb 2016 16:11:18 +0530 Subject: [PATCH] ignore just removed downloads --- oml/downloads.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oml/downloads.py b/oml/downloads.py index 39f1645..cdd4069 100644 --- a/oml/downloads.py +++ b/oml/downloads.py @@ -39,6 +39,8 @@ class Downloads(Thread): for itemid, t in downloads: if state.shutdown: return False + if itemid not in self.transfers: + continue if t.get('added') and t.get('progress', -1) < 1: i = item.models.Item.get(itemid) for u in i.users: