summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-06 13:24:26 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-06 13:24:26 +0200
commit5a0cd07a791f28db8433de775d12adaed3ee9548 (patch)
tree33f26145e763466b03d476836cc9899134a64246 /module/plugins/accounts
parent[XFSPAccount] Improve patterns (diff)
downloadpyload-5a0cd07a791f28db8433de775d12adaed3ee9548.tar.xz
[LomafileCom] Premium support + updated patterns
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/LomafileCom.py19
1 files changed, 19 insertions, 0 deletions
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'<b>Premium account expire:([^<]+)</b>'
+ TRAFFIC_LEFT_PATTERN = r'<TR><TD>Traffic available today:</TD><TD><b>(?P<S>[^<]+)</b>'