示例#1
0
def live_stream():
    stream = pylivestream.Livestream(inifn=Path(os.getcwd()), site='youtube')
    stream2 = pylivestream.FileIn(Path(os.getcwd()), websites='youtube')
    stream.filein()
    stream.key = 'tusm-dmxq-zp33-2mt2'
    stream.startlive()
示例#2
0
def test_config_not_found(tmp_path):
    with pytest.raises(FileNotFoundError):
        pls.Livestream(tmp_path / "nothere.ini", "localhost")
示例#3
0
def test_config_default(tmp_path):
    S = pls.Livestream(None, "localhost")
    assert "localhost" in S.site
示例#4
0
def test_config_default(tmp_path):
    S = pls.Livestream(None, 'localhost')
    assert 'localhost' in S.site