Scrot Upload: [imgur] Hardcode client id

This commit is contained in:
Dylan Araps 2016-11-23 14:12:55 +11:00
parent 2cfbec3503
commit cf0499257e
2 changed files with 1 additions and 6 deletions

View File

@ -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

View File

@ -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"
;;