basically, the script will loop on every channel by ID, and check the live stream ( support hls for the moment ), and if the streams return invalid code, it will request a restart query for that channel by its ID.
- FOR Panel V2 : if you don't want some channels to be online, you have to delete them as the script will run them everytime they are offline, or edit the script to bypass the channel by its ID
- FOR Panel V3: the script will loop on every provider to load all channels inside it, and it scan if an offline stream it will request a Restart command, for better performance, keep only the providers that you load channels inside it.
URL = "127.0.0.1:8989"
MPD_PANEL = "v3"
Give execution permission to the Script :
chmod +x checker.py
you can use crontab to run the script every 1 minute for example ( better to set it for 1 minute or more ) :
*/1 * * * * /usr/bin/python3 /PATH_TO_SCRIPT/checker.py
(if you have huge number of channels on your panel, better to set more than 1 minute in crontab job to run the script, as it will take more time to scan and perform actions on all channels.)
Regards.
(3 time(s) working and 0 time(s) not-working in total)