Fix teknik

This commit is contained in:
Dylan Araps 2016-10-02 19:51:44 +11:00
parent 56997e6bc3
commit 269e903e64

View file

@ -2304,11 +2304,9 @@ scrot_upload() {
case "$image_host" in
"teknik")
baseurl='https://u.teknik.io'
uploadurl='https://api.teknik.io/upload/post'
uploadurl='https://api.teknik.io/v1/Upload'
ret="$(curl -sf -F file="@${image_file}" ${uploadurl})"
desturl="${ret##*url\":\"}"
desturl="${desturl%%\"*}"
desturl="${desturl//\\}"
url="$(awk -F 'url:\"|\"' '{printf $2}' <<< "$ret")"
;;
"mediacrush")