From ba916633f2bedb04c7358000b91aed69f52e8e43 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 1 Aug 2014 19:35:59 +0200 Subject: 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 --- module/plugins/hoster/LomafileCom.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'module/plugins/hoster/LomafileCom.py') 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\d+)\s(?P\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\w+)\.jpg"', self.html) -- cgit v1.2.3