Skip to content

Instantly share code, notes, and snippets.

@ahbanavi
Last active December 18, 2021 16:08
Show Gist options
  • Save ahbanavi/5f17cfaff33aca001bce64cf8dc951a0 to your computer and use it in GitHub Desktop.
Save ahbanavi/5f17cfaff33aca001bce64cf8dc951a0 to your computer and use it in GitHub Desktop.
Check if subtitle released in subscene
#!/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
@ahbanavi
Copy link
Author

How to run?

watch -egn 120 ./check_sub.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment