Эх сурвалжийг харах

uplss: timeout, silent, pomf.cat -> mixtape.moe

raylu 9 жил өмнө
parent
commit
6c494516e5
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  1. 3 2
      uplss

+ 3 - 2
uplss

@@ -3,6 +3,7 @@
 set -e
 
 file="$HOME/screenshot.png"
-url=`curl https://pomf.cat/upload.php -F "files[]=@$file" | grep -o '"url":".*",'`
-url=https://a.pomf.cat/${url:7:${#url}-9}
+url=`curl -m 5 -s https://mixtape.moe/upload.php -F "files[]=@$file" | grep -o '"url":".*",'`
+url=${url:7:${#url}-9}
+url=${url//\\\//\/}
 x-www-browser $url