# -*- coding: utf-8 -*- import re from pyload.plugins.internal.XFSHoster import XFSHoster, create_getInfo class RarefileNet(XFSHoster): __name = "RarefileNet" __type = "hoster" __version = "0.08" __pattern = r'http://(?:www\.)?rarefile\.net/\w{12}' __description = """Rarefile.net hoster plugin""" __license = "GPLv3" __authors = [("zoidberg", "zoidberg@mujmail.cz")] HOSTER_DOMAIN = "rarefile.net" NAME_PATTERN = r'(?P.+?)<' SIZE_PATTERN = r'>Size : (?P[\d.,]+) (?P[\w^_]+)' LINK_PATTERN = r'(?P=link)' getInfo = create_getInfo(RarefileNet)