fixed fzf prompt not working with title in selection menu
This commit is contained in:
10
grpoppro
10
grpoppro
@@ -4,9 +4,9 @@ GRPOPPRO_DATA_DIR=~/.local/share/grpoppro
|
|||||||
#GRPOPPRO_DATA_DIR=${XDG_DATA_HOME:-$HOME/.local/}/grpoppro
|
#GRPOPPRO_DATA_DIR=${XDG_DATA_HOME:-$HOME/.local/}/grpoppro
|
||||||
GRPOPPRO_DATA_FILE=$GRPOPPRO_DATA_DIR/lastPlayed
|
GRPOPPRO_DATA_FILE=$GRPOPPRO_DATA_DIR/lastPlayed
|
||||||
INTERACTIVE="on"
|
INTERACTIVE="on"
|
||||||
menu="rofi -show -dmenu -p"
|
menu="rofi -show -dmenu -p "
|
||||||
#menu="fzf -i --prompt=seasonXepisode"
|
#menu="fzf -i --prompt="
|
||||||
#menu="dmenu -i -l 10 -p seasonXepisode"
|
#menu="dmenu -i -l 10 -p "
|
||||||
apiurl="https://coverapi.store"
|
apiurl="https://coverapi.store"
|
||||||
player="mpv"
|
player="mpv"
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ title=$(echo $title | sed 's/ /%20/g')
|
|||||||
getIMDBID "$title"
|
getIMDBID "$title"
|
||||||
simpleurl=$apiurl/embed/$imdbid/
|
simpleurl=$apiurl/embed/$imdbid/
|
||||||
getSeriesID_URL
|
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
|
if [[ -z "$seasonEpisode" ]]; then
|
||||||
[[ "$INTERACTIVE" == "on" ]] && notify-send -t 2000 "Nothing Selected" || echo "Nothing Selected"
|
[[ "$INTERACTIVE" == "on" ]] && notify-send -t 2000 "Nothing Selected" || echo "Nothing Selected"
|
||||||
exit
|
exit
|
||||||
@@ -120,7 +120,7 @@ do
|
|||||||
sourceData
|
sourceData
|
||||||
simpleurl=$apiurl/embed/$imdbid/
|
simpleurl=$apiurl/embed/$imdbid/
|
||||||
getSeriesID_URL
|
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
|
if [[ -z "$seasonEpisode" ]]; then
|
||||||
[[ "$INTERACTIVE" == "on" ]] && notify-send "Nothing Selected" || echo "Nothing Selected"
|
[[ "$INTERACTIVE" == "on" ]] && notify-send "Nothing Selected" || echo "Nothing Selected"
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user