summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UploadedTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/UploadedTo.py')
-rw-r--r--module/plugins/accounts/UploadedTo.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py
index b4d194396..e10b93e8d 100644
--- a/module/plugins/accounts/UploadedTo.py
+++ b/module/plugins/accounts/UploadedTo.py
@@ -23,18 +23,18 @@ from time import time
class UploadedTo(Account):
__name__ = "UploadedTo"
- __version__ = "0.21"
+ __version__ = "0.23"
__type__ = "account"
- __description__ = """ul.to account plugin"""
+ __description__ = """ul.net account plugin"""
__author_name__ = ("mkaay")
__author_mail__ = ("mkaay@mkaay.de")
def loadAccountInfo(self, user, req):
- req.load("http://uploaded.to/language/en")
- html = req.load("http://uploaded.to/me")
+ req.load("http://uploaded.net/language/en")
+ html = req.load("http://uploaded.net/me")
- premium = '<a href="me#premium"><em>Premium</em>' in html or '<em>Premium</em></th>' in html
+ premium = '<a href="register"><em>Premium</em>' in html or '<em>Premium</em></th>' in html
if premium:
raw_traffic = re.search(r'<th colspan="2"><b class="cB">([^<]+)', html).group(1)
@@ -56,10 +56,10 @@ class UploadedTo(Account):
def login(self, user, data, req):
- req.load("http://uploaded.to/language/en")
- req.cj.setCookie("uploaded.to", "lang", "en")
+ req.load("http://uploaded.net/language/en")
+ req.cj.setCookie("uploaded.net", "lang", "en")
- page = req.load("http://uploaded.to/io/login", post={ "id" : user, "pw" : data["password"], "_" : ""})
+ page = req.load("http://uploaded.net/io/login", post={ "id" : user, "pw" : data["password"], "_" : ""})
if "User and password do not match!" in page:
self.wrongPassword()