made adding a video to a playlist also cache it

This commit is contained in:
Emma Tebibyte 2023-11-15 11:14:39 -07:00
parent b83408a453
commit d966cf1a45
Signed by: emma
GPG Key ID: 6D661C738815E7DD
1 changed files with 1 additions and 0 deletions

1
yt
View File

@ -25,6 +25,7 @@ add() { # adds a video to a playlist file
printf "%s: %s: %s: Video already in playlist.\n" "$argv0" "$2" "$1"
exit
else
cache "$1"
archive "$1"
printf "%s\n" "$1" >> "$2"
fi