Updated to avoid dl blacklisted images
This commit is contained in:
parent
10bf2ed85a
commit
47945c4d9c
1 changed files with 6 additions and 7 deletions
|
@ -88,17 +88,16 @@ for i in $SELECTION;do
|
|||
|
||||
PICKED="/tmp/$(basename "$URL_FILE")"
|
||||
|
||||
# Always delete the temporary file
|
||||
trap "rm ${PICKED} ${TMP}" EXIT
|
||||
|
||||
sleep 1
|
||||
curl -L -s "$URL_FILE" -o "$PICKED"
|
||||
|
||||
[ "$RATING" = "general" ] && NSFW="--safe" && TEXT="$MSG_SFW"
|
||||
[ "$RATING" = "sensitive" ] && NSFW="--safe" && TEXT="$MSG_SFW"
|
||||
|
||||
# No nsfw loli
|
||||
[ "$NSFW" = "--nsfw" ] && echo "$TAGS" | grep -q "loli" > /dev/null && continue
|
||||
[ "$NSFW" = "--nsfw" ] && echo "$TAGS" | grep -Fq " loli " && continue
|
||||
|
||||
# Always delete the temporary file
|
||||
trap "rm ${PICKED} ${TMP}" EXIT
|
||||
sleep 1
|
||||
curl -L -s "$URL_FILE" -o "$PICKED"
|
||||
|
||||
[ ! -f "$PICKED" ] && echo "Failed to download: ${URL_FILE} to ${PICKED}" && continue
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue