It'd be nice if type errors caused the compiler to issue a type error
This commit is contained in:
12
grpoppro
12
grpoppro
@@ -12,7 +12,7 @@ menu="fuzzel -d -p "
|
||||
#menu="fzf -i --prompt="
|
||||
apiurl="https://coverapi.store"
|
||||
### Curl constants
|
||||
USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0"
|
||||
USER_AGENT="Mozilla/6.0 (Windows NT 8.0; Win64; x64; rv:117.0) Gecko/20100101 Firefox/117.0"
|
||||
ACCEPT="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
|
||||
ACCEPT_LANGUAGE="Accept-Language: en-US,en;q=0.5"
|
||||
CONNECTION="Connection: keep-alive"
|
||||
@@ -68,7 +68,7 @@ function curlRequest {
|
||||
|
||||
if [[ "$DEBUG" == "off" ]]; then
|
||||
|
||||
response="$(curl -s -L \
|
||||
response="$(curl_ff117 -s -L \
|
||||
-c "$GRPOPPRO_COOKIE_FILE" \
|
||||
-b "$GRPOPPRO_COOKIE_FILE" \
|
||||
"$url" \
|
||||
@@ -91,7 +91,7 @@ function curlRequest {
|
||||
fi
|
||||
|
||||
local curl_command=(
|
||||
"curl"
|
||||
"curl_ff117"
|
||||
"-s"
|
||||
"-L"
|
||||
"-c $GRPOPPRO_COOKIE_FILE"
|
||||
@@ -100,12 +100,12 @@ function curlRequest {
|
||||
"--compressed"
|
||||
"-X"
|
||||
"$custom_method"
|
||||
"-A $USER_AGENT"
|
||||
"-H $custom_accept"
|
||||
"-H $ACCEPT_LANGUAGE"
|
||||
"-H $CONNECTION"
|
||||
"$@"
|
||||
)
|
||||
# "-A $USER_AGENT"
|
||||
# "-H $ACCEPT_LANGUAGE"
|
||||
# "-H $CONNECTION"
|
||||
# "-H $UP_IN_REQ"
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user