def __init__(self, url, quality='best'): ExternalProcess.__init__(self) cmd = [ 'livestreamer', url, quality, '--http-header', 'Client-ID=tq6hq1srip0i37ipzuscegt7viex9fh', '--output', OUT_FILE, '--player-fifo' ] self.cmd = cmd
def __init__(self, url, quality='best'): ExternalProcess.__init__(self) cmd = [ 'livestreamer', url, quality, '--output', OUT_FILE, '--player-fifo' ] self.cmd = cmd
def __init__(self, torrent, idx): ExternalProcess.__init__(self) cmd = ["node", "--max-old-space-size=128", "/usr/local/bin/peerflix"] # Avoid problems with downloading torrent files torrent = chanutils.torrent.torrent2magnet(torrent) cmd.append(torrent) cmd.append("-q") cmd.append("-r") cmd.append("-p") cmd.append(_PEERFLIX_PORT) if idx is not None and idx >= 0: cmd.append("-i") cmd.append(str(idx)) self.cmd = cmd
def __init__(self): ExternalProcess.__init__(self, True)
def __init__(self, url): ExternalProcess.__init__(self) self.url = url
def __init__(self, subs): ExternalProcess.__init__(self) self.subs = subs self.subsfile = None
def __init__(self, message): ExternalProcess.__init__(self) cmd = ['notify-send', '--expire-time', '10000', message] self.cmd = cmd
def __init__(self, cmd): ExternalProcess.__init__(self) cmd.insert(0, 'rtmpdump') cmd.append('-o') cmd.append(OUT_FILE) self.cmd = cmd