summaryrefslogtreecommitdiff
path: root/network/yturl/yturl.pod
blob: 51a47b4a19cd18763a9effc82b74940be1159fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# POD source for yturl man page. Convert with:
# pod2man --stderr -s1 -cSlackBuilds.org -r1.20.0 yturl.pod > yturl.1

=pod

=head1 NAME

yturl - Get direct URLs to YouTube videos.

=head1 SYNOPSIS

yturl [-h] [-q QUALITY] videoID/url

videoID/url is a YouTube url or bare video ID.

=head1 DESCRIPTION

By default, yturl prints the media URL to standard output.

    $ yturl 'http://www.youtube.com/watch?v=8TCxE0bWQeQ'
    Using itag 43.
    http://r2---sn-uphxqvujvh-30al.googlevideo.com/videoplayback?source=[...]

This means that you can do something like the following to watch it in
mpv:

    $ mpv "$(yturl 'http://www.youtube.com/watch?v=8TCxE0bWQeQ')"

(also works with vlc, but for some reason not with mplayer)

Or something like the following to download it (using curl):

    $ curl -Lo bill "$(yturl 'http://www.youtube.com/watch?v=8TCxE0bWQeQ')"

=head1 OPTIONS

=over 4

=item -h, --help

show help message and exit

=item -q QUALITY, --quality QUALITY

specify quality, can be "low", "medium", "high", or an itag (see
http://en.wikipedia.org/wiki/YouTube#Quality_and_formats)

=back

=cut