im using python to check if certain channel is live or not by using "https://www.youtube.com/channel/channel_id/live" by using youtube dl "is_live" I have managed to get what I want.
However, if the channel is not streaming, it takes ages to download the whole channel including all the playlist.
I want to stop the download if download time excess 5 seconds. Is there any way I can do this?