this is the culmination of many months of work, enjoy!
a configuration file looks like this
stored as : ~/.local/share/streamonline/zentreyastream_state.txt
000
streamlink
360p
https://twitch.tv/
- line 1 (
000
) is the date last checked (if <= current date it will not be checked) - line 2 (
streamlink
orxdg_open
) is the mode to use, usexdg_open
if you want our stream opened in a browser, usestreamlink
for media player (recommended on lower end systems) - line 3 (
360p
) is the stream quality (options are provided at file creation, (see source code for details)) - line 4 (
https://twitch.tv/
) is the host site, you will need to provide the link exactly as it appears in you browsers address bar (minus the stream name since that is appended to the end of the URL) - line 5 and beyond (reserved for future use)
streamlink
printf
systemd
notify-send
grep
sed
echo