aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-04-22 07:37:58 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-04-22 07:38:49 +0200
commitb34fe631987b90cf6646271c874f8fa61ed81fbf (patch)
tree6d3a4c37b0475e0721edf50f6b04e0e438fd9002
parent3c8ddcaf264a08102b27ae96a8a8340cb0abc997 (diff)
downloadfiv-b34fe631987b90cf6646271c874f8fa61ed81fbf.tar.gz
fiv-b34fe631987b90cf6646271c874f8fa61ed81fbf.tar.xz
fiv-b34fe631987b90cf6646271c874f8fa61ed81fbf.zip
Fix reverse image search
It was only a matter of time before this would fail, although I did not expect this to happen so soon.
-rwxr-xr-xfiv-reverse-search4
1 files changed, 2 insertions, 2 deletions
diff --git a/fiv-reverse-search b/fiv-reverse-search
index 5210703..dc12790 100755
--- a/fiv-reverse-search
+++ b/fiv-reverse-search
@@ -5,5 +5,5 @@ if [ "$#" -ne 2 ]; then
fi
xdg-open "$1$(fiv --thumbnail-for-search large "$2" \
- | curl --silent --show-error --upload-file - https://transfer.sh/image \
- | jq --slurp --raw-input --raw-output @uri)"
+ | curl --silent --show-error --form 'files[]=@-' https://uguu.se/upload \
+ | jq --raw-output '.files[] | .url | @uri')"