# -*- coding: utf-8 -*- from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo class IFileWs(XFileSharingPro): __name__ = "IFileWs" __type__ = "hoster" __pattern__ = r'http://(?:www\.)?ifile\.ws/\w+(/.+)?' __version__ = "0.01" __description__ = """Ifile.ws hoster plugin""" __author_name__ = "z00nx" __author_mail__ = "z00nx0@gmail.com" HOSTER_NAME = "ifile.ws" FILE_INFO_PATTERN = '(?P[^<]+)\s+\[(?P[^]]+)\]' FILE_OFFLINE_PATTERN = 'File Not Found|The file was removed by administrator' LONG_WAIT_PATTERN = "(?P\d(?=\s+minutes)).*(?P\d+(?=\s+seconds))" getInfo = create_getInfo(IFileWs)