# -*- coding: utf-8 -*- # # Test links: # http://speedy.sh/ep2qY/Zapp-Brannigan.jpg import re from urlparse import urljoin from pyload.plugin.internal.SimpleHoster import SimpleHoster class SpeedyshareCom(SimpleHoster): __name = "SpeedyshareCom" __type = "hoster" __version = "0.05" __pattern = r'https?://(?:www\.)?(speedyshare\.com|speedy\.sh)/\w+' __config = [("use_premium", "bool", "Use premium account if available", True)] __description = """Speedyshare.com hoster plugin""" __license = "GPLv3" __authors = [("zapp-brannigan", "fuerst.reinje@web.de")] NAME_PATTERN = r'class=downloadfilename>(?P.*)' SIZE_PATTERN = r'class=sizetagtext>(?P.*) (?P[kKmM]?[iI]?[bB]?)' OFFLINE_PATTERN = r'class=downloadfilenamenotfound>.*' LINK_FREE_PATTERN = r'