# -*- coding: utf-8 -*- import re from urlparse import urljoin from pyload.plugin.internal.SimpleHoster import SimpleHoster class FastshareCz(SimpleHoster): __name = "FastshareCz" __type = "hoster" __version = "0.29" __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|