From 8e47b0de30a25d0fd5dfb518bfe4e1e7beff93fd Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 15 Jul 2014 16:27:44 +0200 Subject: Key attributes cleanup for account, container and crypter plugins --- module/plugins/accounts/AlldebridCom.py | 2 ++ module/plugins/accounts/BayfilesCom.py | 2 ++ module/plugins/accounts/BitshareCom.py | 2 ++ module/plugins/accounts/CramitIn.py | 1 + module/plugins/accounts/CyberlockerCh.py | 2 ++ module/plugins/accounts/CzshareCom.py | 2 ++ module/plugins/accounts/DdlstorageCom.py | 2 ++ module/plugins/accounts/DebridItaliaCom.py | 2 ++ module/plugins/accounts/DepositfilesCom.py | 2 ++ module/plugins/accounts/EasybytezCom.py | 2 ++ module/plugins/accounts/EgoFilesCom.py | 2 ++ module/plugins/accounts/EuroshareEu.py | 2 ++ module/plugins/accounts/FastixRu.py | 2 ++ module/plugins/accounts/FastshareCz.py | 2 ++ module/plugins/accounts/File4safeCom.py | 1 + module/plugins/accounts/FilecloudIo.py | 2 ++ module/plugins/accounts/FilefactoryCom.py | 2 ++ module/plugins/accounts/FilejungleCom.py | 2 ++ module/plugins/accounts/FilerNet.py | 2 ++ module/plugins/accounts/FilerioCom.py | 1 + module/plugins/accounts/FilesMailRu.py | 2 ++ module/plugins/accounts/FileserveCom.py | 2 ++ module/plugins/accounts/FourSharedCom.py | 2 ++ module/plugins/accounts/FreakshareCom.py | 2 ++ module/plugins/accounts/FreeWayMe.py | 2 ++ module/plugins/accounts/FshareVn.py | 2 ++ module/plugins/accounts/Ftp.py | 2 ++ module/plugins/accounts/HellshareCz.py | 2 ++ module/plugins/accounts/HotfileCom.py | 2 ++ module/plugins/accounts/Http.py | 2 ++ module/plugins/accounts/LetitbitNet.py | 2 ++ module/plugins/accounts/LinksnappyCom.py | 2 ++ module/plugins/accounts/MegaDebridEu.py | 2 ++ module/plugins/accounts/MegasharesCom.py | 2 ++ module/plugins/accounts/MovReelCom.py | 1 + module/plugins/accounts/MultiDebridCom.py | 2 ++ module/plugins/accounts/MultishareCz.py | 2 ++ module/plugins/accounts/NetloadIn.py | 2 ++ module/plugins/accounts/OboomCom.py | 2 ++ module/plugins/accounts/OneFichierCom.py | 1 + module/plugins/accounts/OverLoadMe.py | 2 ++ module/plugins/accounts/Premium4Me.py | 2 ++ module/plugins/accounts/PremiumizeMe.py | 2 ++ module/plugins/accounts/QuickshareCz.py | 2 ++ module/plugins/accounts/RPNetBiz.py | 2 ++ module/plugins/accounts/RapidgatorNet.py | 2 ++ module/plugins/accounts/RapidshareCom.py | 2 ++ module/plugins/accounts/RarefileNet.py | 1 + module/plugins/accounts/RealdebridCom.py | 2 ++ module/plugins/accounts/RehostTo.py | 2 ++ module/plugins/accounts/RyushareCom.py | 2 ++ module/plugins/accounts/ShareRapidCom.py | 2 ++ module/plugins/accounts/ShareonlineBiz.py | 2 ++ module/plugins/accounts/SimplyPremiumCom.py | 2 ++ module/plugins/accounts/SimplydebridCom.py | 2 ++ module/plugins/accounts/StahnuTo.py | 1 + module/plugins/accounts/TurbobitNet.py | 1 + module/plugins/accounts/UlozTo.py | 2 ++ module/plugins/accounts/UnrestrictLi.py | 2 ++ module/plugins/accounts/UploadedTo.py | 2 ++ module/plugins/accounts/UploadheroCom.py | 2 ++ module/plugins/accounts/UploadingCom.py | 2 ++ module/plugins/accounts/UptoboxCom.py | 1 + module/plugins/accounts/YibaishiwuCom.py | 2 ++ module/plugins/accounts/ZeveraCom.py | 2 ++ 65 files changed, 121 insertions(+) (limited to 'module/plugins/accounts') diff --git a/module/plugins/accounts/AlldebridCom.py b/module/plugins/accounts/AlldebridCom.py index ee0a2ff28..122d23447 100644 --- a/module/plugins/accounts/AlldebridCom.py +++ b/module/plugins/accounts/AlldebridCom.py @@ -13,10 +13,12 @@ class AlldebridCom(Account): __name__ = "AlldebridCom" __version__ = "0.22" __type__ = "account" + __description__ = """AllDebrid.com account plugin""" __author_name__ = "Andy Voigt" __author_mail__ = "spamsales@online.de" + def loadAccountInfo(self, user, req): data = self.getAccountData(user) page = req.load("http://www.alldebrid.com/account/") diff --git a/module/plugins/accounts/BayfilesCom.py b/module/plugins/accounts/BayfilesCom.py index 8f11af2ef..9d497ccb2 100644 --- a/module/plugins/accounts/BayfilesCom.py +++ b/module/plugins/accounts/BayfilesCom.py @@ -25,10 +25,12 @@ class BayfilesCom(Account): __name__ = "BayfilesCom" __version__ = "0.03" __type__ = "account" + __description__ = """Bayfiles.com account plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" + def loadAccountInfo(self, user, req): for _ in xrange(2): response = json_loads(req.load("http://api.bayfiles.com/v1/account/info")) diff --git a/module/plugins/accounts/BitshareCom.py b/module/plugins/accounts/BitshareCom.py index 09ff76efb..3802b2c46 100644 --- a/module/plugins/accounts/BitshareCom.py +++ b/module/plugins/accounts/BitshareCom.py @@ -22,10 +22,12 @@ class BitshareCom(Account): __name__ = "BitshareCom" __version__ = "0.12" __type__ = "account" + __description__ = """Bitshare account plugin""" __author_name__ = "Paul King" __author_mail__ = None + def loadAccountInfo(self, user, req): page = req.load("http://bitshare.com/mysettings.html") diff --git a/module/plugins/accounts/CramitIn.py b/module/plugins/accounts/CramitIn.py index 56cb5390b..9d352c967 100644 --- a/module/plugins/accounts/CramitIn.py +++ b/module/plugins/accounts/CramitIn.py @@ -7,6 +7,7 @@ class CramitIn(XFSPAccount): __name__ = "CramitIn" __version__ = "0.01" __type__ = "account" + __description__ = """Cramit.in account plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" diff --git a/module/plugins/accounts/CyberlockerCh.py b/module/plugins/accounts/CyberlockerCh.py index 4f3189b0c..297808a6e 100644 --- a/module/plugins/accounts/CyberlockerCh.py +++ b/module/plugins/accounts/CyberlockerCh.py @@ -8,12 +8,14 @@ class CyberlockerCh(XFSPAccount): __name__ = "CyberlockerCh" __version__ = "0.01" __type__ = "account" + __description__ = """Cyberlocker.ch account plugin""" __author_name__ = "stickell" __author_mail__ = "l.stickell@yahoo.it" MAIN_PAGE = "http://cyberlocker.ch/" + def login(self, user, data, req): html = req.load(self.MAIN_PAGE + 'login.html', decode=True) diff --git a/module/plugins/accounts/CzshareCom.py b/module/plugins/accounts/CzshareCom.py index 3545baa7e..92d0e61e8 100644 --- a/module/plugins/accounts/CzshareCom.py +++ b/module/plugins/accounts/CzshareCom.py @@ -25,12 +25,14 @@ class CzshareCom(Account): __name__ = "CzshareCom" __version__ = "0.14" __type__ = "account" + __description__ = """Czshare.com account plugin, now Sdilej.cz""" __author_name__ = ("zoidberg", "stickell") __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it") CREDIT_LEFT_PATTERN = r'\s*([0-9 ,]+) (KiB|MiB|GiB)\s*([^<]*)\s*' + def loadAccountInfo(self, user, req): html = req.load("http://sdilej.cz/prehled_kreditu/") diff --git a/module/plugins/accounts/DdlstorageCom.py b/module/plugins/accounts/DdlstorageCom.py index f3eebc59b..9d90f4dab 100644 --- a/module/plugins/accounts/DdlstorageCom.py +++ b/module/plugins/accounts/DdlstorageCom.py @@ -15,12 +15,14 @@ class DdlstorageCom(XFSPAccount): __name__ = "DdlstorageCom" __version__ = "1.00" __type__ = "account" + __description__ = """DDLStorage.com account plugin""" __author_name__ = "stickell" __author_mail__ = "l.stickell@yahoo.it" MAIN_PAGE = "http://ddlstorage.com/" + def loadAccountInfo(self, user, req): password = self.accounts[user]['password'] api_data = req.load('http://www.ddlstorage.com/cgi-bin/api_req.cgi', diff --git a/module/plugins/accounts/DebridItaliaCom.py b/module/plugins/accounts/DebridItaliaCom.py index 29aef4546..1ee0d96c2 100644 --- a/module/plugins/accounts/DebridItaliaCom.py +++ b/module/plugins/accounts/DebridItaliaCom.py @@ -24,12 +24,14 @@ class DebridItaliaCom(Account): __name__ = "DebridItaliaCom" __version__ = "0.1" __type__ = "account" + __description__ = """Debriditalia.com account plugin""" __author_name__ = "stickell" __author_mail__ = "l.stickell@yahoo.it" WALID_UNTIL_PATTERN = r"Premium valid till: (?P[^|]+) \|" + def loadAccountInfo(self, user, req): if 'Account premium not activated' in self.html: return {"premium": False, "validuntil": None, "trafficleft": None} diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py index 2b46807e8..beeae2a5f 100644 --- a/module/plugins/accounts/DepositfilesCom.py +++ b/module/plugins/accounts/DepositfilesCom.py @@ -25,10 +25,12 @@ class DepositfilesCom(Account): __name__ = "DepositfilesCom" __version__ = "0.2" __type__ = "account" + __description__ = """Depositfiles.com account plugin""" __author_name__ = ("mkaay", "stickell") __author_mail__ = ("mkaay@mkaay.de", "l.stickell@yahoo.it") + def loadAccountInfo(self, user, req): src = req.load("http://depositfiles.com/de/gold/") validuntil = re.search(r"Sie haben Gold Zugang bis: (.*?)", src).group(1) diff --git a/module/plugins/accounts/EasybytezCom.py b/module/plugins/accounts/EasybytezCom.py index 9fa12fcda..9b41c9135 100644 --- a/module/plugins/accounts/EasybytezCom.py +++ b/module/plugins/accounts/EasybytezCom.py @@ -27,6 +27,7 @@ class EasybytezCom(Account): __name__ = "EasybytezCom" __version__ = "0.04" __type__ = "account" + __description__ = """EasyBytez.com account plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" @@ -34,6 +35,7 @@ class EasybytezCom(Account): VALID_UNTIL_PATTERN = r'Premium account expire:([^<]+)' TRAFFIC_LEFT_PATTERN = r'Traffic available today:(?P[^<]+)' + def loadAccountInfo(self, user, req): html = req.load("http://www.easybytez.com/?op=my_account", decode=True) diff --git a/module/plugins/accounts/EgoFilesCom.py b/module/plugins/accounts/EgoFilesCom.py index 9cb157516..cd568456f 100644 --- a/module/plugins/accounts/EgoFilesCom.py +++ b/module/plugins/accounts/EgoFilesCom.py @@ -11,12 +11,14 @@ class EgoFilesCom(Account): __name__ = "EgoFilesCom" __version__ = "0.2" __type__ = "account" + __description__ = """Egofiles.com account plugin""" __author_name__ = "stickell" __author_mail__ = "l.stickell@yahoo.it" PREMIUM_ACCOUNT_PATTERN = '
\s*Premium: (?P

[^/]*) / Traffic left: (?P[\d.]*) (?P\w*)\s*\\n\s*
' + def loadAccountInfo(self, user, req): html = req.load("http://egofiles.com") if 'You are logged as a Free User' in html: diff --git a/module/plugins/accounts/EuroshareEu.py b/module/plugins/accounts/EuroshareEu.py index 779e2227c..f7ff456f9 100644 --- a/module/plugins/accounts/EuroshareEu.py +++ b/module/plugins/accounts/EuroshareEu.py @@ -25,10 +25,12 @@ class EuroshareEu(Account): __name__ = "EuroshareEu" __version__ = "0.01" __type__ = "account" + __description__ = """Euroshare.eu account plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" + def loadAccountInfo(self, user, req): self.relogin(user) html = req.load("http://euroshare.eu/customer-zone/settings/") diff --git a/module/plugins/accounts/FastixRu.py b/module/plugins/accounts/FastixRu.py index 6aec55a84..9e8d1f4fe 100644 --- a/module/plugins/accounts/FastixRu.py +++ b/module/plugins/accounts/FastixRu.py @@ -8,10 +8,12 @@ class FastixRu(Account): __name__ = "FastixRu" __version__ = "0.02" __type__ = "account" + __description__ = """Fastix account plugin""" __author_name__ = "Massimo Rosamilia" __author_mail__ = "max@spiritix.eu" + def loadAccountInfo(self, user, req): data = self.getAccountData(user) page = req.load("http://fastix.ru/api_v2/?apikey=%s&sub=getaccountdetails" % (data['api'])) diff --git a/module/plugins/accounts/FastshareCz.py b/module/plugins/accounts/FastshareCz.py index d8bb542c0..cf7854b3c 100644 --- a/module/plugins/accounts/FastshareCz.py +++ b/module/plugins/accounts/FastshareCz.py @@ -24,12 +24,14 @@ class FastshareCz(Account): __name__ = "FastshareCz" __version__ = "0.03" __type__ = "account" + __description__ = """Fastshare.cz account plugin""" __author_name__ = ("zoidberg", "stickell") __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it") CREDIT_PATTERN = r'(?:Kredit|Credit)\s*\s*]*>([\d. \w]+) ' + def loadAccountInfo(self, user, req): html = req.load("http://www.fastshare.cz/user", decode=True) diff --git a/module/plugins/accounts/File4safeCom.py b/module/plugins/accounts/File4safeCom.py index 6a11493d2..158d7be3b 100644 --- a/module/plugins/accounts/File4safeCom.py +++ b/module/plugins/accounts/File4safeCom.py @@ -7,6 +7,7 @@ class File4safeCom(XFSPAccount): __name__ = "File4safeCom" __version__ = "0.01" __type__ = "account" + __description__ = """File4safe.com account plugin""" __author_name__ = "stickell" __author_mail__ = "l.stickell@yahoo.it" diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py index 17eda5ae3..b8bad5c4c 100644 --- a/module/plugins/accounts/FilecloudIo.py +++ b/module/plugins/accounts/FilecloudIo.py @@ -23,10 +23,12 @@ class FilecloudIo(Account): __name__ = "FilecloudIo" __version__ = "0.02" __type__ = "account" + __description__ = """FilecloudIo account plugin""" __author_name__ = ("zoidberg", "stickell") __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it") + def loadAccountInfo(self, user, req): # It looks like the first API request always fails, so we retry 5 times, it should work on the second try for _ in xrange(5): diff --git a/module/plugins/accounts/FilefactoryCom.py b/module/plugins/accounts/FilefactoryCom.py index 40626fe1e..be96d8a52 100644 --- a/module/plugins/accounts/FilefactoryCom.py +++ b/module/plugins/accounts/FilefactoryCom.py @@ -26,12 +26,14 @@ class FilefactoryCom(Account): __name__ = "FilefactoryCom" __version__ = "0.14" __type__ = "account" + __description__ = """Filefactory.com account plugin""" __author_name__ = ("zoidberg", "stickell") __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it") VALID_UNTIL_PATTERN = r'Premium valid until: (?P\d{1,2})\w{1,2} (?P\w{3}), (?P\d{4})' + def loadAccountInfo(self, user, req): html = req.load("http://www.filefactory.com/account/") diff --git a/module/plugins/accounts/FilejungleCom.py b/module/plugins/accounts/FilejungleCom.py index 9ca35537a..e105d1e26 100644 --- a/module/plugins/accounts/FilejungleCom.py +++ b/module/plugins/accounts/FilejungleCom.py @@ -25,6 +25,7 @@ class FilejungleCom(Account): __name__ = "FilejungleCom" __version__ = "0.11" __type__ = "account" + __description__ = """Filejungle.com account plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" @@ -35,6 +36,7 @@ class FilejungleCom(Account): TRAFFIC_LEFT_PATTERN = r'"/extend_premium\.php">Until (\d+ [A-Za-z]+ \d+)' + def loadAccountInfo(self, user, req): html = req.load(self.URL + "dashboard.php") found = re.search(self.TRAFFIC_LEFT_PATTERN, html) diff --git a/module/plugins/accounts/FilerNet.py b/module/plugins/accounts/FilerNet.py index 747051e94..475f01301 100644 --- a/module/plugins/accounts/FilerNet.py +++ b/module/plugins/accounts/FilerNet.py @@ -25,6 +25,7 @@ class FilerNet(Account): __name__ = "FilerNet" __version__ = "0.01" __type__ = "account" + __description__ = """Filer.net account plugin""" __author_name__ = "stickell" __author_mail__ = "l.stickell@yahoo.it" @@ -34,6 +35,7 @@ class FilerNet(Account): TRAFFIC_PATTERN = r'Traffic\s*([^<]+)' FREE_PATTERN = r'Account Status\s*\s*Free' + def loadAccountInfo(self, user, req): self.html = req.load("https://filer.net/profile") diff --git a/module/plugins/accounts/FilerioCom.py b/module/plugins/accounts/FilerioCom.py index 5f2164cf1..7288930f4 100644 --- a/module/plugins/accounts/FilerioCom.py +++ b/module/plugins/accounts/FilerioCom.py @@ -7,6 +7,7 @@ class FilerioCom(XFSPAccount): __name__ = "FilerioCom" __version__ = "0.01" __type__ = "account" + __description__ = """FileRio.in account plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" diff --git a/module/plugins/accounts/FilesMailRu.py b/module/plugins/accounts/FilesMailRu.py index fdcd284bd..a87aac8a8 100644 --- a/module/plugins/accounts/FilesMailRu.py +++ b/module/plugins/accounts/FilesMailRu.py @@ -22,10 +22,12 @@ class FilesMailRu(Account): __name__ = "FilesMailRu" __version__ = "0.1" __type__ = "account" + __description__ = """Filesmail.ru account plugin""" __author_name__ = "RaNaN" __author_mail__ = "RaNaN@pyload.org" + def loadAccountInfo(self, user, req): return {"validuntil": None, "trafficleft": None} diff --git a/module/plugins/accounts/FileserveCom.py b/module/plugins/accounts/FileserveCom.py index a8b2b4529..f91f5b703 100644 --- a/module/plugins/accounts/FileserveCom.py +++ b/module/plugins/accounts/FileserveCom.py @@ -25,10 +25,12 @@ class FileserveCom(Account): __name__ = "FileserveCom" __version__ = "0.2" __type__ = "account" + __description__ = """Fileserve.com account plugin""" __author_name__ = "mkaay" __author_mail__ = "mkaay@mkaay.de" + def loadAccountInfo(self, user, req): data = self.getAccountData(user) diff --git a/module/plugins/accounts/FourSharedCom.py b/module/plugins/accounts/FourSharedCom.py index c901a4d5c..b8a0c33f6 100644 --- a/module/plugins/accounts/FourSharedCom.py +++ b/module/plugins/accounts/FourSharedCom.py @@ -23,10 +23,12 @@ class FourSharedCom(Account): __name__ = "FourSharedCom" __version__ = "0.01" __type__ = "account" + __description__ = """FourShared.com account plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" + def loadAccountInfo(self, user, req): #fixme return {"validuntil": -1, "trafficleft": -1, "premium": False} diff --git a/module/plugins/accounts/FreakshareCom.py b/module/plugins/accounts/FreakshareCom.py index 67a7a1444..2987b21eb 100644 --- a/module/plugins/accounts/FreakshareCom.py +++ b/module/plugins/accounts/FreakshareCom.py @@ -24,10 +24,12 @@ class FreakshareCom(Account): __name__ = "FreakshareCom" __version__ = "0.1" __type__ = "account" + __description__ = """Freakshare.com account plugin""" __author_name__ = "RaNaN" __author_mail__ = "RaNaN@pyload.org" + def loadAccountInfo(self, user, req): page = req.load("http://freakshare.com/") diff --git a/module/plugins/accounts/FreeWayMe.py b/module/plugins/accounts/FreeWayMe.py index 58dfb93fd..8a7d46aa1 100644 --- a/module/plugins/accounts/FreeWayMe.py +++ b/module/plugins/accounts/FreeWayMe.py @@ -23,10 +23,12 @@ class FreeWayMe(Account): __name__ = "FreeWayMe" __version__ = "0.11" __type__ = "account" + __description__ = """FreeWayMe account plugin""" __author_name__ = "Nicolas Giese" __author_mail__ = "james@free-way.me" + def loadAccountInfo(self, user, req): status = self.getAccountStatus(user, req) if not status: diff --git a/module/plugins/accounts/FshareVn.py b/module/plugins/accounts/FshareVn.py index c6f30c88e..27b74c907 100644 --- a/module/plugins/accounts/FshareVn.py +++ b/module/plugins/accounts/FshareVn.py @@ -26,6 +26,7 @@ class FshareVn(Account): __name__ = "FshareVn" __version__ = "0.07" __type__ = "account" + __description__ = """Fshare.vn account plugin""" __author_name__ = ("zoidberg", "stickell") __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it") @@ -35,6 +36,7 @@ class FshareVn(Account): TRAFFIC_LEFT_PATTERN = ur'

Tổng Dung Lượng Tài Khoản
\s*]*>([0-9.]+) ([kKMG])B' DIRECT_DOWNLOAD_PATTERN = ur']*)[^>]*/>Kích hoạt download trực tiếp' + def loadAccountInfo(self, user, req): self.html = req.load("http://www.fshare.vn/account_info.php", decode=True) diff --git a/module/plugins/accounts/Ftp.py b/module/plugins/accounts/Ftp.py index b454cba7a..93f161bb9 100644 --- a/module/plugins/accounts/Ftp.py +++ b/module/plugins/accounts/Ftp.py @@ -7,8 +7,10 @@ class Ftp(Account): __name__ = "Ftp" __version__ = "0.01" __type__ = "account" + __description__ = """Ftp dummy account plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" + login_timeout = info_threshold = 1000000 diff --git a/module/plugins/accounts/HellshareCz.py b/module/plugins/accounts/HellshareCz.py index 5823c09f0..bf98dcadb 100644 --- a/module/plugins/accounts/HellshareCz.py +++ b/module/plugins/accounts/HellshareCz.py @@ -25,12 +25,14 @@ class HellshareCz(Account): __name__ = "HellshareCz" __version__ = "0.14" __type__ = "account" + __description__ = """Hellshare.cz account plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" CREDIT_LEFT_PATTERN = r'