fixed adding videos to playlists
This commit is contained in:
parent
d966cf1a45
commit
fbf3516435
2
yt
2
yt
@ -20,7 +20,7 @@ set -e
|
|||||||
|
|
||||||
add() { # adds a video to a playlist file
|
add() { # adds a video to a playlist file
|
||||||
while test -n "$2"; do
|
while test -n "$2"; do
|
||||||
if test -z "$(sed -n ";$1;p" "$2")"
|
if test -n "$(grep -e "$1" "$2")"
|
||||||
then
|
then
|
||||||
printf "%s: %s: %s: Video already in playlist.\n" "$argv0" "$2" "$1"
|
printf "%s: %s: %s: Video already in playlist.\n" "$argv0" "$2" "$1"
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user