# -*- coding: utf-8 -*- from module.plugins.internal.SimpleHoster import SimpleHoster, parseFileInfo from module.network.RequestFactory import getURL from module.plugins.ReCaptcha import ReCaptcha import re def getInfo(urls): for url in urls: header = getURL(url, just_header=True) if 'Location: http://speedload.org/index.php' in header: file_info = (url, 0, 1, url) else: file_info = parseFileInfo(SpeedLoadOrg, url, getURL(url, decode=True)) yield file_info class SpeedLoadOrg(SimpleHoster): __name__ = "SpeedLoadOrg" __type__ = "hoster" __pattern__ = r"http://(www\.)?speedload\.org/(?P\w+).*" __version__ = "0.01" __description__ = """Speedload.org hoster plugin""" __author_name__ = ("z00nx") __author_mail__ = ("z00nx0@gmail.com") FILE_NAME_PATTERN = '