should work I guess...

This commit is contained in:
coolnsx
2024-05-15 17:41:06 +05:30
parent 95b3b0b284
commit f0952fb659
3 changed files with 9 additions and 6 deletions

11
ani-new
View File

@@ -2,7 +2,7 @@
domain="allanime.day" domain="allanime.day"
run_file="${TMPDIR:-/tmp}/${0##*/}_run" run_file="${TMPDIR:-/tmp}/${0##*/}_run"
agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/12$(head /dev/urandom | tr -dc '0-3' | cut -c1).0.0.0 Safari/537.36" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/12$(head /dev/urandom | tr -dc '2-5' | cut -c1).0.0.0 Safari/537.36"
debug=$2 debug=$2
\cat << EOF > "$run_file" \cat << EOF > "$run_file"
@@ -34,9 +34,12 @@ esac
trap "exit 0" INT HUP trap "exit 0" INT HUP
info_$os "Parsing $domain.. Please wait..." info_$os "Parsing $domain.. Please wait..."
[ -z "$1" ] && url=$(search | ( url=$(search | (
[ "$os" != "linux" ] && fzf --bind="change:reload:$run_file {q} 1" --prompt="Select Anime: " --with-nth 2.. -m || menu_$os "Select Anime: " case "$os" in
) | tr ':' ' ' | tr -s ' ') || url=$(printf "%s" "$1" | sed -nE 's|.*/bangumi/([^/]*)/([^/]*)/p-([^-]*)-sub|\1\t\2 Episode \3|p') linux) menu_$os "Select Anime: " ;;
*) fzf --bind="change:reload:$run_file {q} 1" --prompt="Select Anime: " --with-nth 2.. -m ;;
esac
) | tr ':' ' ' | tr -s ' ') || true
[ -z "$url" ] && error_$os "No anime selected" && exit 0 [ -z "$url" ] && error_$os "No anime selected" && exit 0

View File

@@ -64,7 +64,7 @@ instagram() {
#main #main
link="$1" link="$1"
agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/12$(head /dev/urandom | tr -dc '0-3' | cut -c1).0.0.0 Safari/537.36" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/12$(head /dev/urandom | tr -dc '2-5' | cut -c1).0.0.0 Safari/537.36"
case $(uname -o) in case $(uname -o) in
*ndroid*) *ndroid*)

View File

@@ -26,7 +26,7 @@ download_keystore() {
} }
tmp_dir="${TMPDIR:-/tmp}/revanced" tmp_dir="${TMPDIR:-/tmp}/revanced"
agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/12$(head /dev/urandom | tr -dc '2-5' | cut -c1).0.0.0 Safari/537.36"
apk_provider_url="https://www.apkmirror.com" apk_provider_url="https://www.apkmirror.com"
date=$(date +%F) date=$(date +%F)
rv_cli="cli-$date.jar" rv_cli="cli-$date.jar"