summaryrefslogtreecommitdiff
path: root/network/yturl/yturl.1
diff options
context:
space:
mode:
Diffstat (limited to 'network/yturl/yturl.1')
-rw-r--r--network/yturl/yturl.126
1 files changed, 25 insertions, 1 deletions
diff --git a/network/yturl/yturl.1 b/network/yturl/yturl.1
index 6201f0f820..fe3c5eb244 100644
--- a/network/yturl/yturl.1
+++ b/network/yturl/yturl.1
@@ -133,7 +133,7 @@
.\" ========================================================================
.\"
.IX Title "YTURL 1"
-.TH YTURL 1 "2015-01-20" "1.17.0" "SlackBuilds.org"
+.TH YTURL 1 "2015-09-10" "1.20.0" "SlackBuilds.org"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
@@ -145,6 +145,30 @@ yturl \- Get direct URLs to YouTube videos.
yturl [\-h] [\-q \s-1QUALITY\s0] videoID/url
.PP
videoID/url is a YouTube url or bare video \s-1ID.\s0
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+By default, yturl prints the media \s-1URL\s0 to standard output.
+.PP
+.Vb 3
+\& $ yturl \*(Aqhttp://www.youtube.com/watch?v=8TCxE0bWQeQ\*(Aq
+\& Using itag 43.
+\& http://r2\-\-\-sn\-uphxqvujvh\-30al.googlevideo.com/videoplayback?source=[...]
+.Ve
+.PP
+This means that you can do something like the following to watch it in
+mpv:
+.PP
+.Vb 1
+\& $ mpv "$(yturl \*(Aqhttp://www.youtube.com/watch?v=8TCxE0bWQeQ\*(Aq)"
+.Ve
+.PP
+(also works with vlc, but for some reason not with mplayer)
+.PP
+Or something like the following to download it (using curl):
+.PP
+.Vb 1
+\& $ curl \-Lo bill "$(yturl \*(Aqhttp://www.youtube.com/watch?v=8TCxE0bWQeQ\*(Aq)"
+.Ve
.SH "OPTIONS"
.IX Header "OPTIONS"
.IP "\-h, \-\-help" 4