Last active
October 5, 2020 13:26
-
-
Save johnholbrook/589df4d31323e49e6365889747140ce5 to your computer and use it in GitHub Desktop.
Alert when livestream appears to go down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| youtube-dl -o /dev/null $1 | python ytdl-filter.py | |
| afplay alarm.mp3 | |
| say "stream appears to have ended" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| for line in sys.stdin: | |
| print("line") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment