From 275ecd47f14ebee8309de1e1f13d090ca50c38fe Mon Sep 17 00:00:00 2001 From: Nitzo Date: Sun, 10 Jan 2016 02:12:35 +0200 Subject: "is" is evil (2) --- module/plugins/hooks/UnSkipOnFail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hooks/UnSkipOnFail.py') diff --git a/module/plugins/hooks/UnSkipOnFail.py b/module/plugins/hooks/UnSkipOnFail.py index 35ff91672..f31d574cd 100644 --- a/module/plugins/hooks/UnSkipOnFail.py +++ b/module/plugins/hooks/UnSkipOnFail.py @@ -7,7 +7,7 @@ from module.plugins.internal.Addon import Addon class UnSkipOnFail(Addon): __name__ = "UnSkipOnFail" __type__ = "hook" - __version__ = "0.12" + __version__ = "0.13" __status__ = "testing" __config__ = [("activated", "bool", "Activated", True)] @@ -55,7 +55,7 @@ class UnSkipOnFail(Addon): """ for pinfo in self.pyload.api.getQueue(): #: Check if package-folder equals pyfile's package folder - if pinfo.folder is not pyfile.package().folder: + if pinfo.folder != pyfile.package().folder: continue #: Now get packaged data w/ files/links @@ -67,7 +67,7 @@ class UnSkipOnFail(Addon): #: Check if link name collides with pdata's name #: and at last check if it is not pyfile itself - if link.name is pyfile.name and link.fid is not pyfile.id: + if link.name == pyfile.name and link.fid != pyfile.id: return link -- cgit v1.2.3