From be75594eca49b5be07deff09ee7c38efc98f0f24 Mon Sep 17 00:00:00 2001 From: konsthol Date: Fri, 21 Oct 2022 00:25:54 +0300 Subject: [PATCH] now menu shows current show in prompt --- grpoppro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grpoppro b/grpoppro index fe21c07..5fc0ca0 100755 --- a/grpoppro +++ b/grpoppro @@ -4,7 +4,7 @@ GRPOPPRO_DATA_DIR=~/.local/share/grpoppro #GRPOPPRO_DATA_DIR=${XDG_DATA_HOME:-$HOME/.local/}/grpoppro GRPOPPRO_DATA_FILE=$GRPOPPRO_DATA_DIR/lastPlayed INTERACTIVE="on" -menu="rofi -show -dmenu -p seasonXepisode" +menu="rofi -show -dmenu -p" #menu="fzf -i --prompt=seasonXepisode" #menu="dmenu -i -l 10 -p seasonXepisode" apiurl="https://coverapi.store" @@ -99,7 +99,7 @@ title=$(echo $title | sed 's/ /%20/g') getIMDBID "$title" simpleurl=$apiurl/embed/$imdbid/ getSeriesID_URL -seasonEpisode=$(curl -s 'https://coverapi.store/uploads/playlists/'$seriesid'.txt' | grep "mp4" | awk -F\" '{print $8}' | awk -F/ '{print $NF}' | awk -F. '{print $1}' | $menu) +seasonEpisode=$(curl -s 'https://coverapi.store/uploads/playlists/'$seriesid'.txt' | grep "mp4" | awk -F\" '{print $8}' | awk -F/ '{print $NF}' | awk -F. '{print $1}' | $menu "$(echo $title | sed 's/%20/ /g')") if [[ -z "$seasonEpisode" ]]; then [[ "$INTERACTIVE" == "on" ]] && notify-send -t 2000 "Nothing Selected" || echo "Nothing Selected" exit @@ -120,7 +120,7 @@ do sourceData simpleurl=$apiurl/embed/$imdbid/ getSeriesID_URL - seasonEpisode=$(curl -s 'https://coverapi.store/uploads/playlists/'$seriesid'.txt' | grep "mp4" | awk -F\" '{print $8}' | awk -F/ '{print $NF}' | awk -F. '{print $1}' | sed -n -e "0,/$lastSeasonEpisodePlayed/!p" | $menu) + seasonEpisode=$(curl -s 'https://coverapi.store/uploads/playlists/'$seriesid'.txt' | grep "mp4" | awk -F\" '{print $8}' | awk -F/ '{print $NF}' | awk -F. '{print $1}' | sed -n -e "0,/$lastSeasonEpisodePlayed/!p" | $menu "$(echo $title | sed 's/%20/ /g')") if [[ -z "$seasonEpisode" ]]; then [[ "$INTERACTIVE" == "on" ]] && notify-send "Nothing Selected" || echo "Nothing Selected" exit