From d8f74cb8e60fbdd65ead5ff20ea25f5b99858497 Mon Sep 17 00:00:00 2001 From: Shuralon Date: Sun, 11 Jan 2015 14:24:16 +0100 Subject: Typo --- module/plugins/accounts/RehostTo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/plugins/accounts/RehostTo.py b/module/plugins/accounts/RehostTo.py index 4efe38cad..897f888b0 100644 --- a/module/plugins/accounts/RehostTo.py +++ b/module/plugins/accounts/RehostTo.py @@ -6,7 +6,7 @@ from module.plugins.Account import Account class RehostTo(Account): __name__ = "RehostTo" __type__ = "account" - __version__ = "0.15" + __version__ = "0.16" __description__ = """Rehost.to account plugin""" __license__ = "GPLv3" @@ -28,7 +28,7 @@ class RehostTo(Account): html = req.load("http://rehost.to/api.php", get={'cmd': "get_premium_credits", 'long_ses': session}) - if html.strip() == "0,0" or "ERROR" not in html: + if html.strip() == "0,0" or "ERROR" in html: self.logDebug(html) else: traffic, valid = html.split(",") -- cgit v1.2.3 From 537e181c07876352581caf892f130cd0d7152290 Mon Sep 17 00:00:00 2001 From: Shuralon Date: Sun, 11 Jan 2015 14:25:14 +0100 Subject: [RehostTo] Fix --- module/plugins/hooks/RehostTo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/plugins/hooks/RehostTo.py b/module/plugins/hooks/RehostTo.py index 0cb736d9c..653a0444e 100644 --- a/module/plugins/hooks/RehostTo.py +++ b/module/plugins/hooks/RehostTo.py @@ -6,7 +6,7 @@ from module.plugins.internal.MultiHook import MultiHook class RehostTo(MultiHook): __name__ = "RehostTo" __type__ = "hook" - __version__ = "0.49" + __version__ = "0.5" __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"), ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ), @@ -25,5 +25,5 @@ class RehostTo(MultiHook): user, data = self.account.selectAccount() page = self.getURL("http://rehost.to/api.php", get={'cmd' : "get_supported_och_dl", - 'long_ses': self.account.getAccountData(user)['session']}) + 'long_ses': self.account.getAccountInfo(user)['session']}) return [x.strip() for x in page.replace("\"", "").split(",")] -- cgit v1.2.3 From fa5cf2866dd7c5a16f2aeb0bc6903ca3968101b3 Mon Sep 17 00:00:00 2001 From: Shuralon Date: Sun, 11 Jan 2015 14:27:00 +0100 Subject: [RehostTo] Fix --- module/plugins/hoster/RehostTo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/plugins/hoster/RehostTo.py b/module/plugins/hoster/RehostTo.py index e706fa6c6..1f7913a72 100644 --- a/module/plugins/hoster/RehostTo.py +++ b/module/plugins/hoster/RehostTo.py @@ -20,9 +20,12 @@ class RehostTo(MultiHoster): def handlePremium(self, pyfile): self.download("http://rehost.to/process_download.php", get={'user': "cookie", - 'pass': self.account.getAccountData(self.user)['session'], + 'pass': self.account.getAccountInfo(self.user)['session'], 'dl' : pyfile.url}, disposition=True) getInfo = create_getInfo(RehostTo) + + +getInfo = create_getInfo(RehostTo) -- cgit v1.2.3 From f842d8baf6a7b7805459af4c4722dd1dd897690e Mon Sep 17 00:00:00 2001 From: Shuralon Date: Sun, 11 Jan 2015 14:27:16 +0100 Subject: [RehostTo] Fix --- module/plugins/hoster/RehostTo.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/module/plugins/hoster/RehostTo.py b/module/plugins/hoster/RehostTo.py index 1f7913a72..780b7e0f2 100644 --- a/module/plugins/hoster/RehostTo.py +++ b/module/plugins/hoster/RehostTo.py @@ -26,6 +26,3 @@ class RehostTo(MultiHoster): getInfo = create_getInfo(RehostTo) - - -getInfo = create_getInfo(RehostTo) -- cgit v1.2.3 -- cgit v1.2.3 From 5b31d8f20133cc575a101026c823f4d4e69621af Mon Sep 17 00:00:00 2001 From: Shuralon Date: Sun, 11 Jan 2015 14:31:01 +0100 Subject: [RehostTo] Fix version --- module/plugins/hoster/RehostTo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/plugins/hoster/RehostTo.py b/module/plugins/hoster/RehostTo.py index 780b7e0f2..28de35d08 100644 --- a/module/plugins/hoster/RehostTo.py +++ b/module/plugins/hoster/RehostTo.py @@ -8,7 +8,7 @@ from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo class RehostTo(MultiHoster): __name__ = "RehostTo" __type__ = "hoster" - __version__ = "0.20" + __version__ = "0.21" __pattern__ = r'https?://.*rehost\.to\..+' -- cgit v1.2.3