From 5a0cd07a791f28db8433de775d12adaed3ee9548 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 6 Oct 2014 13:24:26 +0200 Subject: [LomafileCom] Premium support + updated patterns --- module/plugins/accounts/LomafileCom.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 module/plugins/accounts/LomafileCom.py (limited to 'module/plugins/accounts/LomafileCom.py') diff --git a/module/plugins/accounts/LomafileCom.py b/module/plugins/accounts/LomafileCom.py new file mode 100644 index 000000000..feefdbf47 --- /dev/null +++ b/module/plugins/accounts/LomafileCom.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +from module.plugins.internal.XFSPAccount import XFSPAccount + + +class LomafileCom(XFSPAccount): + __name__ = "LomafileCom" + __type__ = "account" + __version__ = "0.01" + + __description__ = """Lomafile.com account plugin""" + __author_name__ = "guidobelix" + __author_mail__ = "guidobelix@hotmail.it" + + + HOSTER_URL = "http://www.lomafile.com/" + + VALID_UNTIL_PATTERN = r'Premium account expire:([^<]+)' + TRAFFIC_LEFT_PATTERN = r'Traffic available today:(?P[^<]+)' -- cgit v1.2.3 From e2103e995ccdb18bc961354566b9cb704553b18b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 7 Oct 2014 13:17:14 +0200 Subject: Code cosmetics on some account plugins --- module/plugins/accounts/LomafileCom.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'module/plugins/accounts/LomafileCom.py') diff --git a/module/plugins/accounts/LomafileCom.py b/module/plugins/accounts/LomafileCom.py index feefdbf47..379e567d5 100644 --- a/module/plugins/accounts/LomafileCom.py +++ b/module/plugins/accounts/LomafileCom.py @@ -14,6 +14,3 @@ class LomafileCom(XFSPAccount): HOSTER_URL = "http://www.lomafile.com/" - - VALID_UNTIL_PATTERN = r'Premium account expire:([^<]+)' - TRAFFIC_LEFT_PATTERN = r'Traffic available today:(?P[^<]+)' -- cgit v1.2.3 From b0868ae6446078bacf1635dde5e4ab316b4a94cb Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 7 Oct 2014 18:57:59 +0200 Subject: New __authors__ key replaces __author_name__ and __author_mail__ + Whitespaces and EOF fixup --- module/plugins/accounts/LomafileCom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'module/plugins/accounts/LomafileCom.py') diff --git a/module/plugins/accounts/LomafileCom.py b/module/plugins/accounts/LomafileCom.py index 379e567d5..bddccdadc 100644 --- a/module/plugins/accounts/LomafileCom.py +++ b/module/plugins/accounts/LomafileCom.py @@ -9,8 +9,7 @@ class LomafileCom(XFSPAccount): __version__ = "0.01" __description__ = """Lomafile.com account plugin""" - __author_name__ = "guidobelix" - __author_mail__ = "guidobelix@hotmail.it" + __authors__ = [("guidobelix", "guidobelix@hotmail.it")] HOSTER_URL = "http://www.lomafile.com/" -- cgit v1.2.3