diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-30 17:17:16 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-30 17:25:08 +0100 |
commit | 1fd28722083230fd9dfe143414767f8c774cfb90 (patch) | |
tree | 314c5841ac7362726bdf5225e3a3eeb7c4baf736 | |
parent | [SimpleHoster] Fix checkTrafficLeft, ddl routine and cookies support (diff) | |
download | pyload-1fd28722083230fd9dfe143414767f8c774cfb90.tar.xz |
[File4safeCom] Removed, use XFileSharingPro instead
-rw-r--r-- | module/plugins/hoster/File4safeCom.py | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/module/plugins/hoster/File4safeCom.py b/module/plugins/hoster/File4safeCom.py deleted file mode 100644 index 593a2baca..000000000 --- a/module/plugins/hoster/File4safeCom.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- - -import re - -from pycurl import FOLLOWLOCATION - -from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo - - -class File4safeCom(XFSPHoster): - __name__ = "File4safeCom" - __type__ = "hoster" - __version__ = "0.05" - - __pattern__ = r'https?://(?:www\.)?file4safe\.com/\w{12}' - - __description__ = """File4safe.com hoster plugin""" - __license__ = "GPLv3" - __authors__ = [("stickell", "l.stickell@yahoo.it")] - - - HOSTER_NAME = "file4safe.com" - - - def handlePremium(self): - self.req.http.lastURL = self.pyfile.url - - self.req.http.c.setopt(FOLLOWLOCATION, 0) - self.load(self.pyfile.url, post=self.getPostParameters(), decode=True) - self.header = self.req.http.header - self.req.http.c.setopt(FOLLOWLOCATION, 1) - - m = re.search(r"Location\s*:\s*(.*)", self.header, re.I) - if m and re.match(self.LINK_PATTERN, m.group(1)): - location = m.group(1).strip() - self.startDownload(location) - else: - self.error(_("LINK_PATTERN not found")) - - -getInfo = create_getInfo(File4safeCom) |