From 9befdd5fcb17002ee52e40268d72ba659f225762 Mon Sep 17 00:00:00 2001 From: konsthol Date: Fri, 21 Oct 2022 03:19:08 +0300 Subject: [PATCH] fixed fzf prompt not working with title in selection menu --- grpoppro | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/grpoppro b/grpoppro index 5fc0ca0..18fbdf8 100755 --- a/grpoppro +++ b/grpoppro @@ -4,9 +4,9 @@ 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" -#menu="fzf -i --prompt=seasonXepisode" -#menu="dmenu -i -l 10 -p seasonXepisode" +menu="rofi -show -dmenu -p " +#menu="fzf -i --prompt=" +#menu="dmenu -i -l 10 -p " apiurl="https://coverapi.store" player="mpv" @@ -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 "$(echo $title | sed 's/%20/ /g')") +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 "$(echo $title | sed 's/%20/ /g')") + 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