summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-24 23:57:04 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-24 23:57:04 +0200
commitdd13825fbd3df9e441200638cd2a92e3924dfff6 (patch)
tree9159fc1b77d6f6dbf1e7871ed2fb64886f433f1f /module/plugins
parentCode cosmetics (diff)
downloadpyload-dd13825fbd3df9e441200638cd2a92e3924dfff6.tar.xz
Fix typo
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/captcha/CircleCaptcha.py2
-rw-r--r--module/plugins/hooks/Captcha9Kw.py4
-rw-r--r--module/plugins/hooks/Checksum.py2
-rw-r--r--module/plugins/hooks/DeleteFinished.py2
-rw-r--r--module/plugins/hooks/IRCInterface.py2
-rw-r--r--module/plugins/hooks/RestartFailed.py2
-rw-r--r--module/plugins/hooks/UnSkipOnFail.py4
-rw-r--r--module/plugins/hoster/MegaCoNz.py2
-rw-r--r--module/plugins/hoster/TurbobitNet.py2
-rw-r--r--module/plugins/hoster/Xdcc.py2
-rw-r--r--module/plugins/hoster/ZippyshareCom.py2
-rw-r--r--module/plugins/internal/Account.py4
-rw-r--r--module/plugins/internal/Crypter.py2
-rw-r--r--module/plugins/internal/Hoster.py2
-rw-r--r--module/plugins/internal/SimpleCrypter.py2
-rw-r--r--module/plugins/internal/SimpleHoster.py4
16 files changed, 20 insertions, 20 deletions
diff --git a/module/plugins/captcha/CircleCaptcha.py b/module/plugins/captcha/CircleCaptcha.py
index 2b34f073c..7728b4ac9 100644
--- a/module/plugins/captcha/CircleCaptcha.py
+++ b/module/plugins/captcha/CircleCaptcha.py
@@ -543,7 +543,7 @@ class CircleCaptcha(OCR):
mypalette = None
for im in ImageSequence(img):
im.save("orig.png", "png")
- if mypalette not is None:
+ if mypalette is not None:
im.putpalette(mypalette)
mypalette = im.getpalette()
im = im.convert('L')
diff --git a/module/plugins/hooks/Captcha9Kw.py b/module/plugins/hooks/Captcha9Kw.py
index be01688e2..e9edbe7f9 100644
--- a/module/plugins/hooks/Captcha9Kw.py
+++ b/module/plugins/hooks/Captcha9Kw.py
@@ -81,7 +81,7 @@ class Captcha9Kw(Hook):
details = map(str.strip, opt.split(':'))
- if not details or details[0].lower() not is pluginname.lower():
+ if not details or details[0].lower() is not pluginname.lower():
continue
for d in details:
@@ -187,7 +187,7 @@ class Captcha9Kw(Hook):
for opt in str(self.get_config('hoster_options').split('|')):
details = map(str.strip, opt.split(':'))
- if not details or details[0].lower() not is pluginname.lower():
+ if not details or details[0].lower() is not pluginname.lower():
continue
for d in details:
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py
index 06cb09215..9eb47e8a6 100644
--- a/module/plugins/hooks/Checksum.py
+++ b/module/plugins/hooks/Checksum.py
@@ -114,7 +114,7 @@ class Checksum(Addon):
api_size = int(data['size'])
file_size = os.path.getsize(local_file)
- if api_size not is file_size:
+ if api_size is not file_size:
self.log_warning(_("File %s has incorrect size: %d B (%d expected)") % (pyfile.name, file_size, api_size))
self.check_failed(pyfile, local_file, "Incorrect file size")
diff --git a/module/plugins/hooks/DeleteFinished.py b/module/plugins/hooks/DeleteFinished.py
index 8981c6ac1..75a282808 100644
--- a/module/plugins/hooks/DeleteFinished.py
+++ b/module/plugins/hooks/DeleteFinished.py
@@ -39,7 +39,7 @@ class DeleteFinished(Addon):
# def plugin_config_changed(self, plugin, name, value):
- # if name == "interval" and value not is self.interval:
+ # if name == "interval" and value is not self.interval:
# self.interval = value * 3600
# self.init_periodical()
diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py
index c018850b6..08b1bad0c 100644
--- a/module/plugins/hooks/IRCInterface.py
+++ b/module/plugins/hooks/IRCInterface.py
@@ -150,7 +150,7 @@ class IRCInterface(Thread, Addon):
if not msg['origin'].split("!", 1)[0] in self.get_config('owner').split():
return
- if msg['target'].split("!", 1)[0] not is self.get_config('nick'):
+ if msg['target'].split("!", 1)[0] is not self.get_config('nick'):
return
if msg['action'] != "PRIVMSG":
diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py
index 93add5a88..6c3388e3a 100644
--- a/module/plugins/hooks/RestartFailed.py
+++ b/module/plugins/hooks/RestartFailed.py
@@ -22,7 +22,7 @@ class RestartFailed(Addon):
# def plugin_config_changed(self, plugin, name, value):
# if name == "interval":
# interval = value * 60
- # if self.MIN_CHECK_INTERVAL <= interval not is self.interval:
+ # if self.MIN_CHECK_INTERVAL <= interval is not self.interval:
# self.pyload.scheduler.removeJob(self.cb)
# self.interval = interval
# self.init_periodical()
diff --git a/module/plugins/hooks/UnSkipOnFail.py b/module/plugins/hooks/UnSkipOnFail.py
index 5c2e89a7b..d467b8a01 100644
--- a/module/plugins/hooks/UnSkipOnFail.py
+++ b/module/plugins/hooks/UnSkipOnFail.py
@@ -61,7 +61,7 @@ class UnSkipOnFail(Addon):
for package in queue:
#: Check if package-folder equals pyfile's package folder
- if package.folder not is pyfile.package().folder:
+ if package.folder is not pyfile.package().folder:
continue
#: Now get packaged data w/ files/links
@@ -73,7 +73,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 not is pyfile.id:
+ if link.name is pyfile.name and link.fid is not pyfile.id:
return link
diff --git a/module/plugins/hoster/MegaCoNz.py b/module/plugins/hoster/MegaCoNz.py
index e4902f2fc..ad7b06f08 100644
--- a/module/plugins/hoster/MegaCoNz.py
+++ b/module/plugins/hoster/MegaCoNz.py
@@ -163,7 +163,7 @@ class MegaCoNz(Hoster):
f.close()
df.close()
- # if file_mac[0] ^ file_mac[1], file_mac[2] ^ file_mac[3] not is meta_mac:
+ # if file_mac[0] ^ file_mac[1], file_mac[2] ^ file_mac[3] is not meta_mac:
# os.remove(file_decrypted)
# self.fail(_("Checksum mismatch"))
diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py
index 25b8d90c4..d323a214b 100644
--- a/module/plugins/hoster/TurbobitNet.py
+++ b/module/plugins/hoster/TurbobitNet.py
@@ -98,7 +98,7 @@ class TurbobitNet(SimpleHoster):
def get_rt_update(self):
rtUpdate = self.retrieve("rtUpdate")
if not rtUpdate:
- if self.retrieve("version") not is self.__version__ \
+ if self.retrieve("version") is not self.__version__ \
or int(self.retrieve("timestamp", 0)) + 86400000 < timestamp():
#: that's right, we are even using jdownloader updates
rtUpdate = self.load("http://update0.jdownloader.org/pluginstuff/tbupdate.js")
diff --git a/module/plugins/hoster/Xdcc.py b/module/plugins/hoster/Xdcc.py
index 9fa64ff0c..aba66ee94 100644
--- a/module/plugins/hoster/Xdcc.py
+++ b/module/plugins/hoster/Xdcc.py
@@ -195,7 +195,7 @@ class Xdcc(Hoster):
self.pyfile.setStatus("downloading")
newname = self.req.download(ip, port, filename, sock, self.pyfile.setProgress)
- if newname and newname not is filename:
+ if newname and newname is not filename:
self.log_info(_("%(name)s saved as %(newname)s") % {'name': self.pyfile.name, 'newname': newname})
filename = newname
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py
index e48627618..c9f9c8ce7 100644
--- a/module/plugins/hoster/ZippyshareCom.py
+++ b/module/plugins/hoster/ZippyshareCom.py
@@ -73,7 +73,7 @@ class ZippyshareCom(SimpleHoster):
varName = re.sub(r'-', '', 'GVAR[%s+"_%s"]' %(id, attr))
realid = id.strip('"\'')
- if id not is realid: #: Id is not a variable, so look for realid.attr in the html
+ if id is not realid: #: Id is not a variable, so look for realid.attr in the html
initValues = filter(None, [elt.get(attr, None) for elt in soup.findAll(id=realid)])
initValue = '"%s"' % initValues[-1] if initValues else 'null'
initScripts.add('%s = %s;' % (varName, initValue))
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index eaf988974..03521a0ea 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -126,7 +126,7 @@ class Account(Plugin):
if options:
before = self.accounts[user]['options']
self.accounts[user]['options'].update(options)
- return self.accounts[user]['options'] not is before
+ return self.accounts[user]['options'] is not before
else:
self.accounts[user] = {'password': password, 'options': options, 'valid': True}
self._login(user, self.accounts[user])
@@ -291,7 +291,7 @@ class Account(Plugin):
def can_use(self):
- return self.select_account() not is (None, None)
+ return self.select_account() is not (None, None)
def parse_traffic(self, value, unit=None): #: Return kilobytes
diff --git a/module/plugins/internal/Crypter.py b/module/plugins/internal/Crypter.py
index 9b09fc9c1..7e97c8228 100644
--- a/module/plugins/internal/Crypter.py
+++ b/module/plugins/internal/Crypter.py
@@ -91,7 +91,7 @@ class Crypter(Hoster):
setFolder(package_folder)
self.log_debug("Set package %(name)s folder to: %(folder)s" % {'name': name, 'folder': folder})
- elif not folder_per_package or name not is folder:
+ elif not folder_per_package or name is not folder:
if not folder:
folder = urlparse.urlparse(name).path.split("/")[-1]
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index dbc5e88a8..0d2e4dcc4 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -408,7 +408,7 @@ class Hoster(Plugin):
if newname:
newname = urlparse.urlparse(newname).path.split('/')[-1]
- if disposition and newname not is name:
+ if disposition and newname is not name:
self.log_info(_("%(name)s saved as %(newname)s") % {'name': name, 'newname': newname})
self.pyfile.name = newname
filename = os.path.join(location, newname)
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 7fa399276..f5cfa289d 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -132,7 +132,7 @@ class SimpleCrypter(Crypter, SimpleHoster):
try:
url = self.info['url'].strip()
name = self.info['name'].strip()
- if name and name not is url:
+ if name and name is not url:
self.pyfile.name = name
except Exception:
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index f86e6fbe0..5ba207934 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -232,7 +232,7 @@ class SimpleHoster(Hoster):
self.LINK_PREMIUM_PATTERN = self.LINK_PATTERN
if (self.MULTI_HOSTER
- and (self.__pattern__ not is self.pyload.pluginManager.hosterPlugins[self.__name__]['pattern']
+ and (self.__pattern__ is not self.pyload.pluginManager.hosterPlugins[self.__name__]['pattern']
or re.match(self.__pattern__, self.pyfile.url) is None)):
self.multihost = True
return
@@ -471,7 +471,7 @@ class SimpleHoster(Hoster):
try:
url = self.info['url'].strip()
name = self.info['name'].strip()
- if name and name not is url:
+ if name and name is not url:
self.pyfile.name = name
except Exception: