now menu shows current show in prompt

This commit is contained in:
2022-10-21 00:25:54 +03:00
parent 0fc6ecf0d2
commit be75594eca

View File

@@ -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