mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
50 lines
1.1 KiB
Text
50 lines
1.1 KiB
Text
# 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
|