diff options
Diffstat (limited to 'pyload/plugin/hoster/TurbobitNet.py')
-rw-r--r-- | pyload/plugin/hoster/TurbobitNet.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/hoster/TurbobitNet.py b/pyload/plugin/hoster/TurbobitNet.py index c69158c39..a7c5b2502 100644 --- a/pyload/plugin/hoster/TurbobitNet.py +++ b/pyload/plugin/hoster/TurbobitNet.py @@ -15,19 +15,19 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, timestamp class TurbobitNet(SimpleHoster): - __name__ = "TurbobitNet" - __type__ = "hoster" - __version__ = "0.19" + __name = "TurbobitNet" + __type = "hoster" + __version = "0.19" - __pattern__ = r'http://(?:www\.)?turbobit\.net/(?:download/free/)?(?P<ID>\w+)' + __pattern = r'http://(?:www\.)?turbobit\.net/(?:download/free/)?(?P<ID>\w+)' - __description__ = """Turbobit.net hoster plugin""" - __license__ = "GPLv3" - __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), + __description = """Turbobit.net hoster plugin""" + __license = "GPLv3" + __authors = [("zoidberg", "zoidberg@mujmail.cz"), ("prOq", "")] - URL_REPLACEMENTS = [(__pattern__ + ".*", "http://turbobit.net/\g<ID>.html")] + URL_REPLACEMENTS = [(__pattern + ".*", "http://turbobit.net/\g<ID>.html")] COOKIES = [("turbobit.net", "user_lang", "en")] @@ -98,7 +98,7 @@ class TurbobitNet(SimpleHoster): def getRtUpdate(self): rtUpdate = self.getStorage("rtUpdate") if not rtUpdate: - if self.getStorage("version") != self.__version__ \ + if self.getStorage("version") != self.__version \ or int(self.getStorage("timestamp", 0)) + 86400000 < timestamp(): # that's right, we are even using jdownloader updates rtUpdate = getURL("http://update0.jdownloader.org/pluginstuff/tbupdate.js") @@ -110,7 +110,7 @@ class TurbobitNet(SimpleHoster): self.setStorage("rtUpdate", rtUpdate) self.setStorage("timestamp", timestamp()) - self.setStorage("version", self.__version__) + self.setStorage("version", self.__version) else: self.logError(_("Unable to download, wait for update...")) self.tempOffline() |