# -*- coding: utf-8 -*- import re from pyload.network.RequestFactory import getURL from pyload.plugin.Hoster import Hoster def getInfo(urls): result = [] for url in urls: html = getURL(url) if re.search(StreamCz.OFFLINE_PATTERN, html): # File offline result.append((url, 0, 1, url)) else: result.append((url, 0, 2, url)) yield result class StreamCz(Hoster): __name = "StreamCz" __type = "hoster" __version = "0.20" __pattern = r'https?://(?:www\.)?stream\.cz/[^/]+/\d+' __description = """Stream.cz hoster plugin""" __license = "GPLv3" __authors = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'' OFFLINE_PATTERN = r'