fixed pick when video link is commented out
This commit is contained in:
parent
cb4a71be79
commit
6ab0d98ded
5
yt
5
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
|
pick() { # Pick a video to play from a list of videos
|
||||||
while test -n "$1"; do
|
while test -n "$1"; do
|
||||||
for line in $(cat "$1"); do
|
for line in $(cat "$1"); do
|
||||||
|
if test -n "$(printf '%s\n' "$line" | sed -n '/^\#/p')"
|
||||||
|
then
|
||||||
|
continue
|
||||||
|
else
|
||||||
cache "$line"
|
cache "$line"
|
||||||
|
fi
|
||||||
|
|
||||||
if test -z "$list"; then
|
if test -z "$list"; then
|
||||||
list="$(grep "$line" "$cachefile")"
|
list="$(grep "$line" "$cachefile")"
|
||||||
|
Loading…
Reference in New Issue
Block a user