Handle imgur failure. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 69fbee89c4f8d39a41efd33b5aafc776b6fd17a6 DIR parent 37cad4a466e91324ed13744494e059d3f98b0428 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Fri, 13 Aug 2021 18:48:34 +0200 Handle imgur failure. Diffstat: M annna-message-common | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -83,6 +83,10 @@ case "${text}" in *imgur.com/*) nuris="$(youtube-dl -g "${uri}")" + if [ $? -gt 0 ]; + then + nuris="" + fi ;; *lichess.org/????????|*lichess.org/????????/|*lichess.org/????????/black|*lichess.org/????????/white) nuris="$(printf "%s\n" "${uri}" \