Scrot Upload: [imgur] Hardcode client id
This commit is contained in:
parent
2cfbec3503
commit
cf0499257e
|
@ -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
|
||||
|
||||
|
|
2
neofetch
2
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"
|
||||
;;
|
||||
|
|
Reference in New Issue