summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2013-12-13 11:20:19 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-12-13 11:20:39 +0100
commit7f239b41cb29ee95c878f78a6e9cacd55f301a8d (patch)
tree6fdb219256a3fa2c6de6f858197d91c829f73ff2 /module/plugins/accounts
parentMerge pull request #434 from kmarty/stable (diff)
downloadpyload-7f239b41cb29ee95c878f78a6e9cacd55f301a8d.tar.xz
Some hosters marked as dead
Merged #375
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/BoltsharingCom.py13
-rw-r--r--module/plugins/accounts/HellspyCz.py73
-rw-r--r--module/plugins/accounts/Share76Com.py12
-rw-r--r--module/plugins/accounts/UploadstationCom.py14
-rw-r--r--module/plugins/accounts/WuploadCom.py48
-rw-r--r--module/plugins/accounts/X7To.py67
6 files changed, 0 insertions, 227 deletions
diff --git a/module/plugins/accounts/BoltsharingCom.py b/module/plugins/accounts/BoltsharingCom.py
deleted file mode 100644
index 76e010532..000000000
--- a/module/plugins/accounts/BoltsharingCom.py
+++ /dev/null
@@ -1,13 +0,0 @@
-# -*- coding: utf-8 -*-
-from module.plugins.internal.XFSPAccount import XFSPAccount
-
-
-class BoltsharingCom(XFSPAccount):
- __name__ = "BoltsharingCom"
- __version__ = "0.01"
- __type__ = "account"
- __description__ = """Boltsharing.com account plugin"""
- __author_name__ = ("zoidberg")
- __author_mail__ = ("zoidberg@mujmail.cz")
-
- MAIN_PAGE = "http://boltsharing.com/"
diff --git a/module/plugins/accounts/HellspyCz.py b/module/plugins/accounts/HellspyCz.py
deleted file mode 100644
index 1bb574731..000000000
--- a/module/plugins/accounts/HellspyCz.py
+++ /dev/null
@@ -1,73 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License,
- or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, see <http://www.gnu.org/licenses/>.
-
- @author: zoidberg
-"""
-
-import re
-
-from module.plugins.Account import Account
-
-
-class HellspyCz(Account):
- __name__ = "HellspyCz"
- __version__ = "0.2"
- __type__ = "account"
- __description__ = """hellspy.cz account plugin"""
- __author_name__ = ("zoidberg")
- __author_mail__ = ("zoidberg@mujmail.cz")
-
- CREDIT_LEFT_PATTERN = r'<strong>Credits: </strong>\s*(\d+)'
- WRONG_PASSWORD_PATTERN = r'<p class="block-error-3 marg-tb-050">\s*Wrong user or password was entered<br />'
-
- phpsessid = ''
-
- def loadAccountInfo(self, user, req):
- cj = self.getAccountCookies(user)
- cj.setCookie(".hellspy.com", "PHPSESSID", self.phpsessid)
-
- html = req.load("http://www.hellspy.com/")
-
- found = re.search(self.CREDIT_LEFT_PATTERN, html)
- if found is None:
- credits = 0
- else:
- credits = int(found.group(1)) * 1024
-
- return {"validuntil": -1, "trafficleft": credits}
-
- def login(self, user, data, req):
- header = req.load('http://www.hellspy.com/', just_header=True)
- self.phpsessid = re.search(r'PHPSESSID=(\w+)', header).group(1)
- self.logDebug("PHPSESSID:" + self.phpsessid)
-
- html = req.load("http://www.hellspy.com/--%s-" % self.phpsessid)
-
- html = req.load(
- "http://www.hell-share.com/user/login/?do=apiLoginForm-submit&api_hash=hellspy_iq&user_hash=%s" % self.phpsessid,
- post={
- "login": "1",
- "password": data["password"],
- "username": user,
- "redir_url": 'http://www.hellspy.com/?do=loginBox-login',
- "permanent_login": "1"
- })
-
- cj = self.getAccountCookies(user)
- cj.setCookie(".hellspy.com", "PHPSESSID", self.phpsessid)
-
- if not re.search(self.CREDIT_LEFT_PATTERN, html):
- self.wrongPassword()
diff --git a/module/plugins/accounts/Share76Com.py b/module/plugins/accounts/Share76Com.py
deleted file mode 100644
index 1dfcd8510..000000000
--- a/module/plugins/accounts/Share76Com.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- coding: utf-8 -*-
-from module.plugins.internal.XFSPAccount import XFSPAccount
-
-
-class Share76Com(XFSPAccount):
- __name__ = "Share76Com"
- __version__ = "0.02"
- __type__ = "account"
- __description__ = """Share76.com account plugin"""
- __author_name__ = ("me")
-
- MAIN_PAGE = "http://Share76.com/"
diff --git a/module/plugins/accounts/UploadstationCom.py b/module/plugins/accounts/UploadstationCom.py
deleted file mode 100644
index 040f6bbef..000000000
--- a/module/plugins/accounts/UploadstationCom.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from module.plugins.accounts.FilejungleCom import FilejungleCom
-
-
-class UploadstationCom(FilejungleCom):
- __name__ = "UploadstationCom"
- __version__ = "0.1"
- __type__ = "account"
- __description__ = """uploadstation.com account plugin"""
- __author_name__ = ("zoidberg")
- __author_mail__ = ("zoidberg@mujmail.cz")
-
- URL = "http://uploadstation.com/"
diff --git a/module/plugins/accounts/WuploadCom.py b/module/plugins/accounts/WuploadCom.py
deleted file mode 100644
index 2a8bfee8e..000000000
--- a/module/plugins/accounts/WuploadCom.py
+++ /dev/null
@@ -1,48 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License,
- or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, see <http://www.gnu.org/licenses/>.
-
- @author: RaNaN
-"""
-
-from types import MethodType
-
-from module.plugins.Account import Account
-from module.common.json_layer import json_loads
-
-
-class WuploadCom(Account):
- __name__ = "WuploadCom"
- __version__ = "0.1"
- __type__ = "account"
- __description__ = """wupload.com account plugin"""
- __author_name__ = ("RaNaN", "Paul King")
- __author_mail__ = ("RaNaN@pyload.org", "")
-
- API_URL = "http://api.wupload.com"
-
- def init(self):
- fs = self.core.pluginManager.loadClass("accounts", "FilesonicCom")
-
- methods = ["loadAccountInfo", "login"]
- #methods to bind from fs
-
- for m in methods:
- setattr(self, m, MethodType(fs.__dict__[m], self, WuploadCom))
-
- def getDomain(self, req):
- xml = req.load(self.API_URL + "/utility?method=getWuploadDomainForCurrentIp&format=json",
- decode=True)
- return json_loads(xml)["FSApi_Utility"]["getWuploadDomainForCurrentIp"]["response"]
diff --git a/module/plugins/accounts/X7To.py b/module/plugins/accounts/X7To.py
deleted file mode 100644
index 34a7b99be..000000000
--- a/module/plugins/accounts/X7To.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License,
- or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, see <http://www.gnu.org/licenses/>.
-
- @author: ernieb
-"""
-
-import re
-from time import strptime, mktime
-
-from module.plugins.Account import Account
-
-
-class X7To(Account):
- __name__ = "X7To"
- __version__ = "0.1"
- __type__ = "account"
- __description__ = """X7.To account plugin"""
- __author_name__ = ("ernieb")
- __author_mail__ = ("ernieb")
-
- def loadAccountInfo(self, user, req):
- page = req.load("http://www.x7.to/my")
-
- validCheck = re.search("Premium-Mitglied bis ([0-9]*-[0-9]*-[0-9]*)", page, re.IGNORECASE)
- if validCheck:
- valid = validCheck.group(1)
- valid = int(mktime(strptime(valid, "%Y-%m-%d")))
- else:
- validCheck = re.search("Premium member until ([0-9]*-[0-9]*-[0-9]*)", page, re.IGNORECASE)
- if validCheck:
- valid = validCheck.group(1)
- valid = int(mktime(strptime(valid, "%Y-%m-%d")))
- else:
- valid = 0
-
- trafficleft = re.search(r'<em style="white-space:nowrap">([\d]*[,]?[\d]?[\d]?) (KB|MB|GB)</em>',
- page, re.IGNORECASE)
- if trafficleft:
- units = float(trafficleft.group(1).replace(",", "."))
- pow = {'KB': 0, 'MB': 1, 'GB': 2}[trafficleft.group(2)]
- trafficleft = int(units * 1024 ** pow)
- else:
- trafficleft = -1
-
- return {"trafficleft": trafficleft, "validuntil": valid}
-
- def login(self, user, data, req):
- #req.cj.setCookie("share.cx", "lang", "english")
- page = req.load("http://x7.to/lang/en", None, {})
- page = req.load("http://x7.to/james/login", None,
- {"redirect": "http://www.x7.to/", "id": user, "pw": data['password'], "submit": "submit"})
-
- if "Username and password are not matching." in page:
- self.wrongPassword()