diff --git a/yt b/yt index 892598f..7bf2b74 100755 --- a/yt +++ b/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")"