File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ open_video()
3636get_youtube ()
3737{
3838 if [[ $1 -eq 0 ]]; then
39- NUM_SELECTED=$( fzf --style full --header " Select the desired $3 " --bind " start,ctrl-r:reload:echo \" Return\" ; i=0; while [[ \"\$ i\" != \" -1\" ]]; do feed=\$ (yt-dlp -i -q --flat-playlist \" $BASE $2 /$3 \" --playlist-start \$ ((\$ i*100+1)) --playlist-end \$ ((\$ i*100+100)) --print \" %(playlist_index)d: %(title)s\" ); i=\$ ((\$ i+1)); echo \$ feed; [[ \"\$ (echo \$ feed | wc -l)\" -lt \" 100\" ]] && i=-1; done" | awk -F: ' {print $1}' )
39+ NUM_SELECTED=$( fzf --style full --header " Select the desired $3 " --bind " start,ctrl-r:reload:echo \" Return\" ; i=0; while [[ \"\$ i\" != \" -1\" ]]; do feed=\$ (yt-dlp -i -q --flat-playlist \" $BASE $2 /$3 \" --playlist-start \$ ((\$ i*100+1)) --playlist-end \$ ((\$ i*100+100)) --print \" %(playlist_index)d: %(title)s\" ); i=\$ ((\$ i+1)); [[ \"\$ feed \" != \"\" ]] && echo \$ feed; [[ \"\$ (echo \$ feed | wc -l)\" -lt \" 100\" ]] && i=-1; done" | awk -F: ' {print $1}' )
4040 if [[ $NUM_SELECTED == " Return" ]]; then
4141 echo " Return"
4242 else
You can’t perform that action at this time.
0 commit comments