Last active
December 18, 2021 16:08
-
-
Save ahbanavi/5f17cfaff33aca001bce64cf8dc951a0 to your computer and use it in GitHub Desktop.
Check if subtitle released in subscene
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
#!/bin/bash | |
SUB=$(curl --silent https://subscene.com/subtitles/only-murders-in-the-building-first-season/farsi_persian --proxy $proxyip:10808) | |
if [[ $SUB == *"S01E05"* ]]; then | |
echo "found!" | |
# spd-say "subtitle found!" # apt-get install speech-dispatcher | |
curl --silent https://api.telegram.org/botBOT_TOKEN/sendMessage\?chat_id\=YOUR_USER_ID\&text\=Subtitle%20Found\! --proxy $proxyip:10808 | |
exit 1 | |
else | |
echo "not found!" | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to run?