diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-10 17:49:14 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-10 17:49:14 +0200 |
commit | 8e15c1af88b61cebda68a3b40352bf388c2010c7 (patch) | |
tree | bd1fb40094d907ccad41b4770f947cf9cac020cf /module/plugins/hoster/TurbobitNet.py | |
parent | Merge branch 'pr/n1997_GammaC0de' into stable (diff) | |
download | pyload-8e15c1af88b61cebda68a3b40352bf388c2010c7.tar.xz |
Spare code cosmetics (3)
Diffstat (limited to 'module/plugins/hoster/TurbobitNet.py')
-rw-r--r-- | module/plugins/hoster/TurbobitNet.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py index 95de33a3f..4af620019 100644 --- a/module/plugins/hoster/TurbobitNet.py +++ b/module/plugins/hoster/TurbobitNet.py @@ -15,7 +15,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class TurbobitNet(SimpleHoster): - __name__ = "TurbobitNet" + __name = "TurbobitNet" __type__ = "hoster" __version__ = "0.23" __status__ = "testing" @@ -29,7 +29,7 @@ class TurbobitNet(SimpleHoster): ("prOq", None)] - URL_REPLACEMENTS = [(__pattern__ + ".*", "http://turbobit.net/\g<ID>.html")] + URL_REPLACEMENTS = [(__pattern + ".*", "http://turbobit.net/\g<ID>.html")] COOKIES = [("turbobit.net", "user_lang", "en")] @@ -99,7 +99,7 @@ class TurbobitNet(SimpleHoster): if rtUpdate: return rtUpdate - if self.retrieve("version") is not self.__version__ or \ + 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") @@ -111,7 +111,7 @@ class TurbobitNet(SimpleHoster): self.store("rtUpdate", rtUpdate) self.store("timestamp", timestamp()) - self.store("version", self.__version__) + self.store("version", self.__version) else: self.log_error(_("Unable to download, wait for update...")) self.temp_offline() |