Make sure to stop if the RSS-Bridge is offline or the extraction failed
This commit is contained in:
1 parent
8019d3d565
commit
c3d7613e89
1 file changed
+6
@@ -15,6 +15,12 @@ item=$(echo "$json" | jq '.items[0]')
|
|||||||
title=$(echo "$item" | jq -r '.title')
|
title=$(echo "$item" | jq -r '.title')
|
||||||
url=$(echo "$item" | jq -r '.url')
|
url=$(echo "$item" | jq -r '.url')
|
||||||
|
|
||||||
|
# Make sure to stop if the RSS-Bridge is offline or the extraction failed
|
||||||
|
if [ -z "$image_url" ]; then
|
||||||
|
echo "Image URL is empty, exiting script"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
tags=$(echo "$item" | jq -r '.tags') # Needed for NSFW check
|
tags=$(echo "$item" | jq -r '.tags') # Needed for NSFW check
|
||||||
|
|
||||||
# extract the image URL from the content_html
|
# extract the image URL from the content_html
|
||||||
|
|||||||
Reference in new issue
Block a user