# -*- coding: utf-8 -*- import re import time from pyload.plugin.internal.SimpleHoster import SimpleHoster class MegasharesCom(SimpleHoster): __name = "MegasharesCom" __type = "hoster" __version = "0.28" __pattern = r'http://(?:www\.)?(d\d{2}\.)?megashares\.com/((index\.php)?\?d\d{2}=|dl/)\w+' __config = [("use_premium", "bool", "Use premium account if available", True)] __description = """Megashares.com hoster plugin""" __license = "GPLv3" __authors = [("zoidberg", "zoidberg@mujmail.cz"), ("Walter Purcaro", "vuolter@gmail.com")] NAME_PATTERN = r'