aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-06 19:11:09 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-06 19:11:09 +0200
commit7ede58e79e99e37a177d491abad78aeed5fd539f (patch)
tree97fb74787de3db08811dee4d542cfa20a9d8ee50
parentd9e4a8c1b221e4e235eecd41862fdb96bacd9b08 (diff)
Better escapingHEADmaster
-rwxr-xr-xgreentext-voice.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/greentext-voice.sh b/greentext-voice.sh
index 6e4c882..a796423 100755
--- a/greentext-voice.sh
+++ b/greentext-voice.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-text=$(cat | sed 's/</ less than /g; s/>/ greater than /g')
+text=$(cat | sed 's/&/&amp;/g; s/</\&lt;/g; s/>/\&gt;/g')
checksum=$(echo -n "415${text}1mp35883747uetivb9tb8108wfj" | md5sum | cut -d' ' -f1)
curl -s "https://cache.oddcast.com/tts/gen.php" -d EID=4 -d LID=1 -d VID=5 -d "TXT=$text" -d IS_UTF8=1 -d EXT=mp3 -d FNAME= -d ACC=5883747 -d API= -d SESSION= -d "CS=$checksum" -d cache_flag=3 | ffplay -loglevel fatal -nodisp -autoexit -