Merge pull request #5 from bolstad/deduplicte-endpoint-urls

Deduplicte endpoint urls
This commit is contained in:
raynormast 2023-03-23 21:13:53 -04:00 committed by GitHub
commit a4614e886b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
echo > /config/urls.txt
echo > /config/hosts
echo > /config/hashtag-urls.txt
# Get federated hosts and begin to stream them
cat /config/domains-federated | grep -v "##" | while read -r line
@ -79,11 +80,14 @@ done
cat /config/hashtag-urls.txt >> /config/urls.txt
cat /config/urls.txt | while read -r url
sort -u /config/urls.txt | while read -r url
do
echo "[INFO] Opening $url to stream"
sleep $streamDelay
./stream-url.sh $url &
if [[ ! $url == "#"* ]]
then
echo "[INFO] Opening $url to stream"
sleep $streamDelay
./stream-url.sh $url &
fi
done
if [[ $runFirehose == true ]]