From 37d3bf2df3e6f3da479028fa4c89c71545156514 Mon Sep 17 00:00:00 2001 From: konsthol Date: Sun, 5 Jan 2025 13:25:30 +0200 Subject: [PATCH] Is there an achievement for this? --- grpoppro | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/grpoppro b/grpoppro index a25c691..32070ab 100755 --- a/grpoppro +++ b/grpoppro @@ -8,8 +8,6 @@ GRPOPPRO_DATA_FILE="$GRPOPPRO_DATA_DIR/lastPlayedSeries" GRPOPPRO_PLAYLIST_FILE="$GRPOPPRO_DATA_DIR/lastPlaylistPlayed" GRPOPPRO_COOKIE_FILE="$GRPOPPRO_DATA_DIR/cookies.txt" GRPOPPRO_HISTORY_FILE="$GRPOPPRO_DATA_DIR/history" -GRPOPPRO_INTERACTIVE="on" -GRPOPPRO_DEBUG="on" ### Curl constants USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0" ACCEPT="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" @@ -565,6 +563,9 @@ function getMovie { ### Program starts here ### +# Prepare the necessary steps for Termux environment +[[ "$OSTYPE" != "linux-gnu" ]] && GRPOPPRO_INTERACTIVE="off" && menu="fzf -i --prompt=seasonXepisode" && player="am start -n is.xyz.mpv/.MPVActivity -a android.intent.action.VIEW -d" && getFzfForTermux + if [[ -f "$GRPOPPRO_CONFIG_FILE" ]]; then while IFS='=' read -r key value; do # Ignore lines starting with # @@ -616,9 +617,6 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then fi fi -# Prepare the necessary steps for Termux environment -[[ "$OSTYPE" != "linux-gnu" ]] && GRPOPPRO_INTERACTIVE="off" && menu="fzf -i --prompt=seasonXepisode" && player="am start -n is.xyz.mpv/.MPVActivity -a android.intent.action.VIEW -d" && getFzfForTermux - [[ "$#" -lt 1 ]] && usage [[ "$#" -gt 3 ]] && usage [[ "$#" -eq 3 ]] && getSeries "$@"