Handbook
Glossary
download-video ( video-id -- path )
Vocabulary
youtube
Inputs
video-id
an
object
Outputs
path
an
object
Definition
USING:
assocs
http.download
kernel
sequences
;
IN:
youtube
:
download-video
( video-id -- path )
get-video-info
[
downloadable?
[
"Video is encrypted."
throw
]
unless
]
[
video-formats
[
"type"
of
"video/mp4"
head?
]
find
nip
video-download-url
]
[
"title"
of
sanitize
".mp4"
append
download-once-as
]
tri
;