add'l comment
@@ -12,6 +12,7 @@ For this video transcode alert script, you should select the script for action t
|
|||||||
TIMEOUT="10"
|
TIMEOUT="10"
|
||||||
URL="https://api.telegram.org/bot$KEY/sendMessage"
|
URL="https://api.telegram.org/bot$KEY/sendMessage"
|
||||||
TEXT="$2 is playing $3 on device $4 ($5) $1"
|
TEXT="$2 is playing $3 on device $4 ($5) $1"
|
||||||
|
#Something like: Username is playing Movie Name on device My Device (Android) Transcode
|
||||||
|
|
||||||
if [ "$1" != "Direct Play" ] && [ "$1" != "Copy" ]; then
|
if [ "$1" != "Direct Play" ] && [ "$1" != "Copy" ]; then
|
||||||
curl -s --max-time $TIMEOUT -d "chat_id=$USERID&disable_web_page_preview=1&text=$TEXT" $URL > /dev/null
|
curl -s --max-time $TIMEOUT -d "chat_id=$USERID&disable_web_page_preview=1&text=$TEXT" $URL > /dev/null
|
||||||
|
Reference in New Issue
Block a user