# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo


class SharebeesCom(XFileSharingPro):
    __name__ = "SharebeesCom"
    __type__ = "hoster"
    __pattern__ = r"http://(?:\w*\.)*?sharebees.com/\w{12}"
    __version__ = "0.01"
    __description__ = """ShareBees hoster plugin"""
    __author_name__ = ("zoidberg")
    __author_mail__ = ("zoidberg@mujmail.cz")

    FILE_NAME_PATTERN = r'<p class="file-name" ><.*?>\s*(?P<N>.+)'
    FILE_SIZE_PATTERN = r'<small>\((?P<S>\d+) bytes\)</small>'
    FORM_PATTERN = 'F1'
    HOSTER_NAME = "sharebees.com"

getInfo = create_getInfo(SharebeesCom)