# -*- coding: utf-8 -*- from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo class CramitIn(XFileSharingPro): __name__ = "CramitIn" __type__ = "hoster" __pattern__ = r'http://(?:www\.)?cramit.in/\w{12}' __version__ = "0.04" __description__ = """Cramit.in hoster plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" HOSTER_NAME = "cramit.in" FILE_INFO_PATTERN = r'\s*(?P.*?).*?\s*\((?P.*?)\)' DIRECT_LINK_PATTERN = r'href="(http://cramit.in/file_download/.*?)"' def setup(self): self.resumeDownload = self.multiDL = self.premium getInfo = create_getInfo(CramitIn)