summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MultiDebridCom.py
diff options
context:
space:
mode:
authorGravatar stickell <l.stickell@yahoo.it> 2014-09-11 15:52:16 +0200
committerGravatar stickell <l.stickell@yahoo.it> 2014-09-11 15:52:53 +0200
commit6f87a713970d6a18c0a3e622286488ec9e3b5494 (patch)
tree8a1915eb21551f7a9091bee28882c693b264d5af /module/plugins/hoster/MultiDebridCom.py
parent[MultiDebrid] renamed to Myfastline (diff)
downloadpyload-6f87a713970d6a18c0a3e622286488ec9e3b5494.tar.xz
[MultiDebrid] renaming files to MyfastlineCom
Diffstat (limited to 'module/plugins/hoster/MultiDebridCom.py')
-rw-r--r--module/plugins/hoster/MultiDebridCom.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/module/plugins/hoster/MultiDebridCom.py b/module/plugins/hoster/MultiDebridCom.py
deleted file mode 100644
index bae864806..000000000
--- a/module/plugins/hoster/MultiDebridCom.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-from module.common.json_layer import json_loads
-from module.plugins.Hoster import Hoster
-
-
-class MultiDebridCom(Hoster):
- __name__ = "MultiDebridCom"
- __type__ = "hoster"
- __version__ = "0.04"
- __pattern__ = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/dl/'
- __description__ = """Myfastfile.com hoster plugin"""
- __author_name__ = "stickell"
- __author_mail__ = "l.stickell@yahoo.it"
-
- def setup(self):
- self.chunkLimit = -1
- self.resumeDownload = True
-
- def process(self, pyfile):
- 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") % "Myfastfile.com")
- self.fail("No Myfastfile.com account provided")
- else:
- self.logDebug("Original URL: %s" % pyfile.url)
- 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)
- page = json_loads(page)
- if page['status'] != 'ok':
- self.fail('Unable to unrestrict link')
- new_url = page['link']
-
- if new_url != pyfile.url:
- self.logDebug("Unrestricted URL: " + new_url)
-
- self.download(new_url, disposition=True)