# -*- coding: utf-8 -*-
import re
from module.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'<font color="red">(?P<N>.+?)<'
SIZE_PATTERN = r'>Size : (?P<S>[\d.,]+) (?P<U>[\w^_]+)'
LINK_PATTERN = r'<a href="(?P<link>[^"]+)">(?P=link)</a>'
getInfo = create_getInfo(RarefileNet)