summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/LomafileCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-08-01 19:35:59 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-08-01 19:35:59 +0200
commitba916633f2bedb04c7358000b91aed69f52e8e43 (patch)
tree5b0e323417bf2ac9f3d88b4234c7e8da98d30f5c /module/plugins/hoster/LomafileCom.py
parent[DepositfilesCom] Fix missing declaration (thx hmlinaric) (diff)
downloadpyload-ba916633f2bedb04c7358000b91aed69f52e8e43.tar.xz
Remove trailing whitespaces + remove license headers + import urllib methods directly + sort and fix key attributes + use save_join instead join + sort some import declarations + other minor code cosmetics
Diffstat (limited to 'module/plugins/hoster/LomafileCom.py')
-rw-r--r--module/plugins/hoster/LomafileCom.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/hoster/LomafileCom.py b/module/plugins/hoster/LomafileCom.py
index 9f05d952e..98b89a732 100644
--- a/module/plugins/hoster/LomafileCom.py
+++ b/module/plugins/hoster/LomafileCom.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
import re
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
@@ -6,8 +8,10 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class LomafileCom(SimpleHoster):
__name__ = "LomafileCom"
__type__ = "hoster"
- __pattern__ = r'https?://lomafile\.com/.+/[\w\.]+'
__version__ = "0.1"
+
+ __pattern__ = r'https?://lomafile\.com/.+/[\w\.]+'
+
__description__ = """Lomafile.com hoster plugin"""
__author_name__ = "nath_schwarz"
__author_mail__ = "nathan.notwhite@gmail.com"
@@ -16,6 +20,7 @@ class LomafileCom(SimpleHoster):
FILE_SIZE_PATTERN = r'\((?P<S>\d+)\s(?P<U>\w+)\)'
FILE_OFFLINE_PATTERN = r'Software error'
+
def handleFree(self):
for _ in range(3):
captcha_id = re.search(r'src="http://lomafile\.com/captchas/(?P<id>\w+)\.jpg"', self.html)