Adjusted echo format for better readability.
parent
63c3869bf9
commit
9db2002a9e
|
@ -68,11 +68,11 @@ do
|
||||||
result=$(curl -s --stderr - https://www.furaffinity.net/view/$ranid)
|
result=$(curl -s --stderr - https://www.furaffinity.net/view/$ranid)
|
||||||
|
|
||||||
if grep -q "not in our database" <<< "$result"; then
|
if grep -q "not in our database" <<< "$result"; then
|
||||||
echo "$ranid does not exist, logged and re-rolling. ($i of $rep)"
|
echo "($i of $rep) $ranid does not exist, logged and re-rolling."
|
||||||
echo "$ranid" >> already-checked.txt
|
echo "$ranid" >> already-checked.txt
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
elif grep -q "pending deletion" <<< "$result"; then
|
elif grep -q "pending deletion" <<< "$result"; then
|
||||||
echo "$ranid is pending deletion, logged and re-rolling. ($i of $rep)"
|
echo "($i of $rep) $ranid is pending deletion, logged and re-rolling."
|
||||||
echo "$ranid" >> already-checked.txt
|
echo "$ranid" >> already-checked.txt
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
# if it passes the second test, run the main script.
|
# if it passes the second test, run the main script.
|
||||||
|
@ -80,7 +80,7 @@ do
|
||||||
# Only upticks the counter on a hit.
|
# Only upticks the counter on a hit.
|
||||||
xdg-open https://furaffinity.net/view/$ranid 2> /dev/null
|
xdg-open https://furaffinity.net/view/$ranid 2> /dev/null
|
||||||
echo "$ranid" >> already-checked.txt
|
echo "$ranid" >> already-checked.txt
|
||||||
echo "🔫 New Submission! $ranid ($i of $rep)"
|
echo "($i of $rep) 🔫 New Submission! $ranid "
|
||||||
counts=$(wc already-checked.txt | awk '{print $1}')
|
counts=$(wc already-checked.txt | awk '{print $1}')
|
||||||
|
|
||||||
sleep 0.5 #to avoid site throttling.
|
sleep 0.5 #to avoid site throttling.
|
||||||
|
|
Loading…
Reference in New Issue