add error reporting

This commit is contained in:
Stefen Auris 2023-02-16 15:32:25 -05:00
parent ceb2b07353
commit 0f39c5fc0b
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ rm ~/twit_error.txt
cd $HOME/gallery-dl/twitter
for i in */; do
echo ">> $i"
(gallery-dl --sleep 0.5-2 --abort 3 "https://twitter.com/$i" || echo "Problem with gallery at https://twitter.com/$i" >> ~/twit_error.txt) &
(gallery-dl --sleep 0.8-3 --abort 3 "https://twitter.com/$i" || echo "$i" >> ~/twit_error.txt) &
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
wait -n
fi