S
S
Sulus Yakovlev2016-08-29 11:09:01
cmd/bat
Sulus Yakovlev, 2016-08-29 11:09:01

How to implement processing of the result from the previous command in the batch file?

Good afternoon!
There is a plugin called livestreamer that allows you to watch streams on the VLC player.
Runs in cmd command livestreamer [URL_стрима] [качество_видео](1).
If you just drive livestreamer [URL_стрима]in (2), then the result is a list of available video quality options. And if there is no broadcast at the specified link at the moment, then the corresponding answer is displayed.
Please tell me how to implement the subsequent start of the stream if after command 2 the answer came that the broadcast is now active. And if there is no broadcast at the moment, then my message "Kin will not be!" was displayed. Namely, how to "poke a finger" to the batch file on the lines displayed on the screen so that it continues to work according to the conditions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Olgeir, 2016-08-30
@RooDAY

livestreamer [stream_url] [video_quality](1)|find "stream active" && echo GO || echo "There will be no kin!"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question