From cf0499257ec410bdbed80346a6461a920cb0417a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 23 Nov 2016 14:12:55 +1100 Subject: [PATCH] Scrot Upload: [imgur] Hardcode client id --- config/config | 5 ----- neofetch | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/config/config b/config/config index c9da7910..8d5baf42 100644 --- a/config/config +++ b/config/config @@ -404,11 +404,6 @@ scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png" # Possible values: imgur, teknik image_host="imgur" -# Imgur api key -# This is an api key for neofetch, you can sign up for your own -# here: http://api.imgur.com/oauth2/addclient -imgur_client_id="0e8b44d15e9fc95" - # Config Options diff --git a/neofetch b/neofetch index 8611efaf..f6fe2f83 100755 --- a/neofetch +++ b/neofetch @@ -2278,7 +2278,7 @@ scrot_upload() { ;; "imgur") - image_url="$(curl -sH "Authorization: Client-ID $imgur_client_id" -F image="@${image_file}" "https://api.imgur.com/3/upload")" + image_url="$(curl -sH "Authorization: Client-ID 0e8b44d15e9fc95" -F image="@${image_file}" "https://api.imgur.com/3/upload")" image_url="$(awk -F 'id:|,' '{printf $2}' <<< "${image_url//\"}")" [[ "$image_url" ]] && image_url="https://i.imgur.com/${image_url}.png" ;;