summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FastixRu.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/FastixRu.py')
-rw-r--r--module/plugins/hoster/FastixRu.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/module/plugins/hoster/FastixRu.py b/module/plugins/hoster/FastixRu.py
index cc50f4229..0019cf3c2 100644
--- a/module/plugins/hoster/FastixRu.py
+++ b/module/plugins/hoster/FastixRu.py
@@ -10,10 +10,12 @@ from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo
class FastixRu(MultiHoster):
__name__ = "FastixRu"
__type__ = "hoster"
- __version__ = "0.11"
+ __version__ = "0.13"
+ __status__ = "testing"
__pattern__ = r'http://(?:www\.)?fastix\.(ru|it)/file/\w{24}'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Fastix multi-hoster plugin"""
__license__ = "GPLv3"
@@ -21,11 +23,11 @@ class FastixRu(MultiHoster):
def setup(self):
- self.chunkLimit = 3
+ self.chunk_limit = 3
- def handlePremium(self, pyfile):
- api_key = self.account.getAccountData(self.user)
+ def handle_premium(self, pyfile):
+ api_key = self.account.get_data(self.user)
api_key = api_key['api']
self.html = self.load("http://fastix.ru/api_v2/",
@@ -33,7 +35,7 @@ class FastixRu(MultiHoster):
data = json_loads(self.html)
- self.logDebug("Json data", data)
+ self.log_debug("Json data", data)
if "error\":true" in self.html:
self.offline()