summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/Base.py4
-rw-r--r--module/plugins/internal/Hoster.py4
-rw-r--r--module/plugins/internal/SimpleHoster.py4
-rw-r--r--module/plugins/internal/misc.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/internal/Base.py b/module/plugins/internal/Base.py
index 5f766c88f..e6055e454 100644
--- a/module/plugins/internal/Base.py
+++ b/module/plugins/internal/Base.py
@@ -27,7 +27,7 @@ def parse_fileInfo(klass, url="", html=""):
class Base(Plugin):
__name__ = "Base"
__type__ = "base"
- __version__ = "0.22"
+ __version__ = "0.23"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -185,7 +185,7 @@ class Base(Plugin):
def _update_name(self):
name = self.info.get('name')
- if name and name is not self.info.get('url'):
+ if name and name != self.info.get('url'):
self.pyfile.name = name
else:
name = self.pyfile.name
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index 4a1499d5c..69610e8a0 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -34,7 +34,7 @@ if not hasattr(__builtin__.property, "setter"):
class Hoster(Base):
__name__ = "Hoster"
__type__ = "hoster"
- __version__ = "0.53"
+ __version__ = "0.54"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -140,7 +140,7 @@ class Hoster(Base):
try:
unfinished = any(fdata.get('status') == 3 for fid, fdata in pypack.getChildren().items()
- if fid is not self.pyfile.id)
+ if fid != self.pyfile.id)
if unfinished:
return
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 5feb96aec..e5cdd5f6c 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -16,7 +16,7 @@ from module.plugins.internal.misc import (encode, parse_name, parse_size,
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "2.18"
+ __version__ = "2.19"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -221,7 +221,7 @@ class SimpleHoster(Hoster):
if self.LEECH_HOSTER:
pattern = self.pyload.pluginManager.hosterPlugins.get(self.classname)['pattern']
- if self.__pattern__ is not pattern and re.match(self.__pattern__, self.pyfile.url) is None:
+ if self.__pattern__ != pattern and re.match(self.__pattern__, self.pyfile.url) is None:
self.leech_dl = True
if self.leech_dl:
diff --git a/module/plugins/internal/misc.py b/module/plugins/internal/misc.py
index f4491acf7..fa5a2e068 100644
--- a/module/plugins/internal/misc.py
+++ b/module/plugins/internal/misc.py
@@ -38,7 +38,7 @@ except ImportError:
class misc(object):
__name__ = "misc"
__type__ = "plugin"
- __version__ = "0.19"
+ __version__ = "0.20"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -751,7 +751,7 @@ def parse_html_form(attr_str, html, input_names={}):
#: Check input attributes
for key, value in input_names.items():
if key in inputs:
- if isinstance(value, basestring) and inputs[key] is value:
+ if isinstance(value, basestring) and inputs[key] == value:
continue
elif isinstance(value, tuple) and inputs[key] in value:
continue