# -*- coding: utf-8 -*- import re import urlparse from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class FastshareCz(SimpleHoster): __name__ = "FastshareCz" __type__ = "hoster" __version__ = "0.31" __status__ = "stable" __pattern__ = r'http://(?:www\.)?fastshare\.cz/\d+/.+' __config__ = [("use_premium", "bool", "Use premium account if available", True)] __description__ = """FastShare.cz hoster plugin""" __license__ = "GPLv3" __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] URL_REPLACEMENTS = [("#.*", "")] COOKIES = [("fastshare.cz", "lang", "en")] NAME_PATTERN = r'

(?P.+?)<' SIZE_PATTERN = r'>Size\s*: (?P[\d.,]+) (?P[\w^_]+)' OFFLINE_PATTERN = r'>(The file has been deleted|Requested page not found)' LINK_FREE_PATTERN = r'>Enter the code\s*:\s*FastShare.cz|