From 79eacd544a987f80985f4cf73b37df2470b2be49 Mon Sep 17 00:00:00 2001 From: konsthol Date: Tue, 31 Dec 2024 00:41:34 +0200 Subject: [PATCH] added super-widget 2.0. --- grpoppro | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/grpoppro b/grpoppro index d2c6fd1..e5e093e 100755 --- a/grpoppro +++ b/grpoppro @@ -10,6 +10,13 @@ INTERACTIVE="on" 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:133.0) Gecko/20100101 Firefox/133.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" +UP_IN_REQ="Upgrade-Insecure-Requests: 1" +### End of curl constants player="mpv" MPV_OPTS='--vo=gpu \ --gpu-api=opengl \ @@ -19,15 +26,8 @@ MPV_OPTS='--vo=gpu \ --no-load-scripts \ --profile=sw-fast \ --no-ytdl \ - --http-header-fields="User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" \ + --http-header-fields="User-Agent: '"$USER_AGENT"'" \ --fs' -### Curl constants -USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.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" -UP_IN_REQ="Upgrade-Insecure-Requests: 1" -### End of curl constants ## End of definitions # Display a message