fixed pick when video link is commented out
This commit is contained in:
parent
cb4a71be79
commit
6ab0d98ded
7
yt
7
yt
@ -76,7 +76,12 @@ music() { # downloads a video, splitting by chapter and only saving the audio
|
||||
pick() { # Pick a video to play from a list of videos
|
||||
while test -n "$1"; do
|
||||
for line in $(cat "$1"); do
|
||||
cache "$line"
|
||||
if test -n "$(printf '%s\n' "$line" | sed -n '/^\#/p')"
|
||||
then
|
||||
continue
|
||||
else
|
||||
cache "$line"
|
||||
fi
|
||||
|
||||
if test -z "$list"; then
|
||||
list="$(grep "$line" "$cachefile")"
|
||||
|
Loading…
Reference in New Issue
Block a user