1
0
Fork 0

Allow for variable stream delay to debug

This commit is contained in:
Raynor 2022-12-26 17:25:37 +00:00
parent 64c2abf173
commit 29eb750165
2 changed files with 6 additions and 3 deletions

View File

@ -18,4 +18,7 @@ archive=false
## Put whatever amount of time here you want the container to restart after
## This will kill any hanging curl processes that may be taking up uncessary
## resources
restartTimeout=1h
restartTimeout=1h
## How long to delay starting a stream. Leave it here unless you are debugging
streamDelay="0.1s"

View File

@ -44,7 +44,7 @@ do
echo "[INFO] Opening federated line $line"
#Check for hashtags
if [[ "$line" == *" #"* ]]; then
if [[ "$line" == *" "* ]]; then
echo "[INFO] $line has hashtags!"
@ -82,7 +82,7 @@ cat /config/hashtag-urls.txt >> /config/urls.txt
cat /config/urls.txt | while read -r url
do
echo "[INFO] Opening $url to stream"
sleep 0.1s
sleep $streamDelay
./stream-url.sh $url &
done