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
1 changed files with 8 additions and 4 deletions

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 ]]