summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/plugins/accounts/MultiDebridCom.py10
-rw-r--r--module/plugins/hooks/MultiDebridCom.py9
-rw-r--r--module/plugins/hoster/MultiDebridCom.py13
3 files changed, 12 insertions, 20 deletions
diff --git a/module/plugins/accounts/MultiDebridCom.py b/module/plugins/accounts/MultiDebridCom.py
index c731ce9ae..2a2d6d065 100644
--- a/module/plugins/accounts/MultiDebridCom.py
+++ b/module/plugins/accounts/MultiDebridCom.py
@@ -9,13 +9,11 @@ from module.common.json_layer import json_loads
class MultiDebridCom(Account):
__name__ = "MultiDebridCom"
__type__ = "account"
- __version__ = "0.01"
-
- __description__ = """Multi-debrid.com account plugin"""
+ __version__ = "0.02"
+ __description__ = """Myfastfile.com account plugin"""
__author_name__ = "stickell"
__author_mail__ = "l.stickell@yahoo.it"
-
def loadAccountInfo(self, user, req):
if 'days_left' in self.json_data:
validuntil = int(time() + self.json_data['days_left'] * 24 * 60 * 60)
@@ -24,8 +22,8 @@ class MultiDebridCom(Account):
self.logError('Unable to get account information')
def login(self, user, data, req):
- # Password to use is the API-Password written in http://multi-debrid.com/myaccount
- html = req.load("http://multi-debrid.com/api.php",
+ # Password to use is the API-Password written in http://myfastfile.com/myaccount
+ html = req.load("http://myfastfile.com/api.php",
get={"user": user, "pass": data['password']})
self.logDebug('JSON data: ' + html)
self.json_data = json_loads(html)
diff --git a/module/plugins/hooks/MultiDebridCom.py b/module/plugins/hooks/MultiDebridCom.py
index c5d1464f8..e27ec8040 100644
--- a/module/plugins/hooks/MultiDebridCom.py
+++ b/module/plugins/hooks/MultiDebridCom.py
@@ -8,21 +8,18 @@ from module.plugins.internal.MultiHoster import MultiHoster
class MultiDebridCom(MultiHoster):
__name__ = "MultiDebridCom"
__type__ = "hook"
- __version__ = "0.01"
-
+ __version__ = "0.02"
__config__ = [("activated", "bool", "Activated", False),
("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),
("hosterList", "str", "Hoster list (comma separated)", ""),
("unloadFailing", "bool", "Revert to standard download if download fails", False),
("interval", "int", "Reload interval in hours (0 to disable)", 24)]
-
- __description__ = """Multi-debrid.com hook plugin"""
+ __description__ = """Myfastfile.com hook plugin"""
__author_name__ = "stickell"
__author_mail__ = "l.stickell@yahoo.it"
-
def getHoster(self):
- json_data = getURL('http://multi-debrid.com/api.php?hosts', decode=True)
+ json_data = getURL('http://myfastfile.com/api.php?hosts', decode=True)
self.logDebug('JSON data: ' + json_data)
json_data = json_loads(json_data)
diff --git a/module/plugins/hoster/MultiDebridCom.py b/module/plugins/hoster/MultiDebridCom.py
index f70fa0f0e..bae864806 100644
--- a/module/plugins/hoster/MultiDebridCom.py
+++ b/module/plugins/hoster/MultiDebridCom.py
@@ -9,15 +9,12 @@ from module.plugins.Hoster import Hoster
class MultiDebridCom(Hoster):
__name__ = "MultiDebridCom"
__type__ = "hoster"
- __version__ = "0.03"
-
+ __version__ = "0.04"
__pattern__ = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/dl/'
-
- __description__ = """Multi-debrid.com hoster plugin"""
+ __description__ = """Myfastfile.com hoster plugin"""
__author_name__ = "stickell"
__author_mail__ = "l.stickell@yahoo.it"
-
def setup(self):
self.chunkLimit = -1
self.resumeDownload = True
@@ -26,11 +23,11 @@ class MultiDebridCom(Hoster):
if re.match(self.__pattern__, pyfile.url):
new_url = pyfile.url
elif not self.account:
- self.logError(_("Please enter your %s account or deactivate this plugin") % "Multi-debrid.com")
- self.fail("No Multi-debrid.com account provided")
+ self.logError(_("Please enter your %s account or deactivate this plugin") % "Myfastfile.com")
+ self.fail("No Myfastfile.com account provided")
else:
self.logDebug("Original URL: %s" % pyfile.url)
- page = self.req.load('http://multi-debrid.com/api.php',
+ page = self.req.load('http://myfastfile.com/api.php',
get={'user': self.user, 'pass': self.account.getAccountData(self.user)['password'],
'link': pyfile.url})
self.logDebug("JSON data: " + page)