diff options
author | 2016-06-15 00:16:11 +0200 | |
---|---|---|
committer | 2016-06-15 00:16:11 +0200 | |
commit | 2e8df8e40ae14517d28b31c044291c8a57987a4f (patch) | |
tree | 8f2e7578ccccb4ffe870dd818962b1d877c7cfa7 /module/plugins/accounts/BigfileTo.py | |
parent | [SimpleCrypter] fix #2499 (diff) | |
download | pyload-2e8df8e40ae14517d28b31c044291c8a57987a4f.tar.xz |
[BigfileTo] fix #2507
Diffstat (limited to 'module/plugins/accounts/BigfileTo.py')
-rw-r--r-- | module/plugins/accounts/BigfileTo.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/module/plugins/accounts/BigfileTo.py b/module/plugins/accounts/BigfileTo.py new file mode 100644 index 000000000..23f91e1f6 --- /dev/null +++ b/module/plugins/accounts/BigfileTo.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- + +from module.plugins.internal.Account import Account + + +class BigfileTo(Account): + __name__ = "BigfileTo" + __type__ = "account" + __version__ = "0.10" + __status__ = "testing" + + __description__ = """bigfile.to account plugin""" + __license__ = "GPLv3" + __authors__ = [("Sasch" , "gsasch@gmail.com" ), + ("GammaC0de", "nitzo2001[AT]yahoo[DOT]com")] + + + def grab_info(self, user, password, data): + html = self.load("https://www.bigfile.to/login.php") + + premium = '<a href="/logout.php"' in html + trafficleft = -1 if premium else None + + return {'validuntil': None, 'trafficleft': trafficleft, 'premium': premium} #@TODO: validuntil + + + def signin(self, user, password, data): + html = self.load("https://www.bigfile.to/login.php", + post={'userName' : user, + 'userPassword' : password, + 'autoLogin' : "1", + 'action__login': "normalLogin"}) + + if "Login failed" in html: + self.fail_login() |