Commit cf049925 authored by Dylan Araps's avatar Dylan Araps

Scrot Upload: [imgur] Hardcode client id

parent 2cfbec35
...@@ -404,11 +404,6 @@ scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png" ...@@ -404,11 +404,6 @@ scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png"
# Possible values: imgur, teknik # Possible values: imgur, teknik
image_host="imgur" 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 # Config Options
......
...@@ -2278,7 +2278,7 @@ scrot_upload() { ...@@ -2278,7 +2278,7 @@ scrot_upload() {
;; ;;
"imgur") "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="$(awk -F 'id:|,' '{printf $2}' <<< "${image_url//\"}")"
[[ "$image_url" ]] && image_url="https://i.imgur.com/${image_url}.png" [[ "$image_url" ]] && image_url="https://i.imgur.com/${image_url}.png"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment