# -*- coding: utf-8 -*- from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo class LomafileCom(XFSPHoster): __name__ = "LomafileCom" __type__ = "hoster" __version__ = "0.5" __pattern__ = r'http://lomafile\.com/\w{12}' __description__ = """Lomafile.com hoster plugin""" __license__ = "GPLv3" __authors__ = [("nath_schwarz", "nathan.notwhite@gmail.com"), ("guidobelix", "guidobelix@hotmail.it")] HOSTER_NAME = "lomafile.com" FILE_NAME_PATTERN = r'' FILE_SIZE_PATTERN = r'Size:(?P[\d.]+) (?P\w+)' OFFLINE_PATTERN = r'>(No such file|Software error:<)' TEMP_OFFLINE_PATTERN = r'The page may have been renamed, removed or be temporarily unavailable.<' CAPTCHA_URL_PATTERN = r'(http://lomafile\.com/captchas/[^"\']+)' getInfo = create_getInfo(LomafileCom)