diff options
Diffstat (limited to 'module/plugins/hoster/LomafileCom.py')
-rw-r--r-- | module/plugins/hoster/LomafileCom.py | 7 |
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) |