fixed clone
This commit is contained in:
parent
28395cd5e8
commit
32101cd6a6
4
yt
4
yt
@ -90,8 +90,8 @@ cache() { # cache the video title for faster retrieval
|
|||||||
clone() { # clones a YouTube playlist to a file
|
clone() { # clones a YouTube playlist to a file
|
||||||
test -d "$YT_PL_DIR" || mkdir -p "$YT_PL_DIR"
|
test -d "$YT_PL_DIR" || mkdir -p "$YT_PL_DIR"
|
||||||
|
|
||||||
if test -n "$2" && file="$2" \
|
test -n "$2" && file="$2" \
|
||||||
|| file="$YT_PL_DIR/$('%(playlist)s' "$1").m3u"
|
|| file="$YT_PL_DIR/$(yt-dlp -s -I '1:1' --print '%(playlist)s' "$1").m3u"
|
||||||
|
|
||||||
yt-dlp --flat-playlist "$1" --print url > "$file"
|
yt-dlp --flat-playlist "$1" --print url > "$file"
|
||||||
verify "$file"
|
verify "$file"
|
||||||
|
Loading…
Reference in New Issue
Block a user