From 38f1c82fb58f120cc14df100fdb6df3589d17d90 Mon Sep 17 00:00:00 2001 From: fake Date: Mon, 18 May 2020 13:23:11 -0700 Subject: [PATCH] fix removal of missing torrents --- premiere/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/premiere/core.py b/premiere/core.py index af354b8..63e3385 100644 --- a/premiere/core.py +++ b/premiere/core.py @@ -51,7 +51,7 @@ class Core(CorePluginBase): def premiere_loop(self): torrents = self.get_premiere_torrents() - for t in torrents: + for t in torrents.keys(): tor = component.get("TorrentManager").torrents.get(t) if not tor: self.del_premiere_torrent(t)