network/youtube-dl: Updated for version 2016.02.10.

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2016-02-11 07:27:49 +02:00 committed by Robby Workman
parent 6fc89fd98b
commit f3b29cd843
3 changed files with 138 additions and 31 deletions

View file

@ -910,43 +910,134 @@ To clarify, that is a percent symbol followed by a name in parentheses,
followed by a lowercase S. followed by a lowercase S.
Allowed names are: Allowed names are:
.IP \[bu] 2 .IP \[bu] 2
\f[C]id\f[]: The sequence will be replaced by the video identifier. \f[C]id\f[]: Video identifier
.IP \[bu] 2 .IP \[bu] 2
\f[C]url\f[]: The sequence will be replaced by the video URL. \f[C]title\f[]: Video title
.IP \[bu] 2 .IP \[bu] 2
\f[C]uploader\f[]: The sequence will be replaced by the nickname of the \f[C]url\f[]: Video URL
person who uploaded the video.
.IP \[bu] 2 .IP \[bu] 2
\f[C]upload_date\f[]: The sequence will be replaced by the upload date \f[C]ext\f[]: Video filename extension
in YYYYMMDD format.
.IP \[bu] 2 .IP \[bu] 2
\f[C]title\f[]: The sequence will be replaced by the video title. \f[C]alt_title\f[]: A secondary title of the video
.IP \[bu] 2 .IP \[bu] 2
\f[C]ext\f[]: The sequence will be replaced by the appropriate extension \f[C]display_id\f[]: An alternative identifier for the video
(like flv or mp4).
.IP \[bu] 2 .IP \[bu] 2
\f[C]epoch\f[]: The sequence will be replaced by the Unix epoch when \f[C]uploader\f[]: Full name of the video uploader
creating the file.
.IP \[bu] 2 .IP \[bu] 2
\f[C]autonumber\f[]: The sequence will be replaced by a five\-digit \f[C]creator\f[]: The main artist who created the video
number that will be increased with each download, starting at zero.
.IP \[bu] 2 .IP \[bu] 2
\f[C]playlist\f[]: The sequence will be replaced by the name or the id \f[C]release_date\f[]: The date (YYYYMMDD) when the video was released
of the playlist that contains the video.
.IP \[bu] 2 .IP \[bu] 2
\f[C]playlist_index\f[]: The sequence will be replaced by the index of \f[C]timestamp\f[]: UNIX timestamp of the moment the video became
the video in the playlist padded with leading zeros according to the available
total length of the playlist.
.IP \[bu] 2 .IP \[bu] 2
\f[C]format_id\f[]: The sequence will be replaced by the format code \f[C]upload_date\f[]: Video upload date (YYYYMMDD)
specified by \f[C]\-\-format\f[].
.IP \[bu] 2 .IP \[bu] 2
\f[C]duration\f[]: The sequence will be replaced by the length of the \f[C]uploader_id\f[]: Nickname or id of the video uploader
video in seconds. .IP \[bu] 2
\f[C]location\f[]: Physical location where the video was filmed
.IP \[bu] 2
\f[C]duration\f[]: Length of the video in seconds
.IP \[bu] 2
\f[C]view_count\f[]: How many users have watched the video on the
platform
.IP \[bu] 2
\f[C]like_count\f[]: Number of positive ratings of the video
.IP \[bu] 2
\f[C]dislike_count\f[]: Number of negative ratings of the video
.IP \[bu] 2
\f[C]repost_count\f[]: Number of reposts of the video
.IP \[bu] 2
\f[C]average_rating\f[]: Average rating give by users, the scale used
depends on the webpage
.IP \[bu] 2
\f[C]comment_count\f[]: Number of comments on the video
.IP \[bu] 2
\f[C]age_limit\f[]: Age restriction for the video (years)
.IP \[bu] 2
\f[C]format\f[]: A human\-readable description of the format
.IP \[bu] 2
\f[C]format_id\f[]: Format code specified by \f[C]\-\-format\f[]
.IP \[bu] 2
\f[C]format_note\f[]: Additional info about the format
.IP \[bu] 2
\f[C]width\f[]: Width of the video
.IP \[bu] 2
\f[C]height\f[]: Height of the video
.IP \[bu] 2
\f[C]resolution\f[]: Textual description of width and height
.IP \[bu] 2
\f[C]tbr\f[]: Average bitrate of audio and video in KBit/s
.IP \[bu] 2
\f[C]abr\f[]: Average audio bitrate in KBit/s
.IP \[bu] 2
\f[C]acodec\f[]: Name of the audio codec in use
.IP \[bu] 2
\f[C]asr\f[]: Audio sampling rate in Hertz
.IP \[bu] 2
\f[C]vbr\f[]: Average video bitrate in KBit/s
.IP \[bu] 2
\f[C]fps\f[]: Frame rate
.IP \[bu] 2
\f[C]vcodec\f[]: Name of the video codec in use
.IP \[bu] 2
\f[C]container\f[]: Name of the container format
.IP \[bu] 2
\f[C]filesize\f[]: The number of bytes, if known in advance
.IP \[bu] 2
\f[C]filesize_approx\f[]: An estimate for the number of bytes
.IP \[bu] 2
\f[C]protocol\f[]: The protocol that will be used for the actual
download
.IP \[bu] 2
\f[C]extractor\f[]: Name of the extractor
.IP \[bu] 2
\f[C]extractor_key\f[]: Key name of the extractor
.IP \[bu] 2
\f[C]epoch\f[]: Unix epoch when creating the file
.IP \[bu] 2
\f[C]autonumber\f[]: Five\-digit number that will be increased with each
download, starting at zero
.IP \[bu] 2
\f[C]playlist\f[]: Name or id of the playlist that contains the video
.IP \[bu] 2
\f[C]playlist_index\f[]: Index of the video in the playlist padded with
leading zeros according to the total length of the playlist
.PP .PP
Note that some of the aforementioned sequences are not guaranteed to be Available for the video that belongs to some logical chapter or section:
present since they depend on the metadata obtained by particular \- \f[C]chapter\f[]: Name or title of the chapter the video belongs to
extractor, such sequences will be replaced with \f[C]NA\f[]. \- \f[C]chapter_number\f[]: Number of the chapter the video belongs to
\- \f[C]chapter_id\f[]: Id of the chapter the video belongs to
.PP
Available for the video that is an episode of some series or programme:
\- \f[C]series\f[]: Title of the series or programme the video episode
belongs to \- \f[C]season\f[]: Title of the season the video episode
belongs to \- \f[C]season_number\f[]: Number of the season the video
episode belongs to \- \f[C]season_id\f[]: Id of the season the video
episode belongs to \- \f[C]episode\f[]: Title of the video episode \-
\f[C]episode_number\f[]: Number of the video episode within a season \-
\f[C]episode_id\f[]: Id of the video episode
.PP
Each aforementioned sequence when referenced in output template will be
replaced by the actual value corresponding to the sequence name.
Note that some of the sequences are not guaranteed to be present since
they depend on the metadata obtained by particular extractor, such
sequences will be replaced with \f[C]NA\f[].
.PP
For example for \f[C]\-o\ %(title)s\-%(id)s.%(ext)s\f[] and mp4 video
with title \f[C]youtube\-dl\ test\ video\f[] and id
\f[C]BaW_jenozKcj\f[] this will result in a
\f[C]youtube\-dl\ test\ video\-BaW_jenozKcj.mp4\f[] file created in the
current directory.
.PP
Output template can also contain arbitrary hierarchical path, e.g.
\f[C]\-o\ \[aq]%(playlist)s/%(playlist_index)s\ \-\ %(title)s.%(ext)s\[aq]\f[]
that will result in downloading each video in a directory corresponding
to this path template.
Any missing directory will be automatically created for you.
.PP
To specify percent literal in output template use \f[C]%%\f[].
To output to stdout use \f[C]\-o\ \-\f[].
.PP .PP
The current default template is \f[C]%(title)s\-%(id)s.%(ext)s\f[]. The current default template is \f[C]%(title)s\-%(id)s.%(ext)s\f[].
.PP .PP
@ -955,13 +1046,29 @@ or &, such as when transferring the downloaded filename to a Windows
system or the filename through an 8bit\-unsafe channel. system or the filename through an 8bit\-unsafe channel.
In these cases, add the \f[C]\-\-restrict\-filenames\f[] flag to get a In these cases, add the \f[C]\-\-restrict\-filenames\f[] flag to get a
shorter title: shorter title:
.PP
Examples (note on Windows you may need to use double quotes instead of
single):
.IP .IP
.nf .nf
\f[C] \f[C]
$\ youtube\-dl\ \-\-get\-filename\ \-o\ "%(title)s.%(ext)s"\ BaW_jenozKc $\ youtube\-dl\ \-\-get\-filename\ \-o\ \[aq]%(title)s.%(ext)s\[aq]\ BaW_jenozKc
youtube\-dl\ test\ video\ \[aq]\[aq]_ä↭𝕐.mp4\ \ \ \ #\ All\ kinds\ of\ weird\ characters youtube\-dl\ test\ video\ \[aq]\[aq]_ä↭𝕐.mp4\ \ \ \ #\ All\ kinds\ of\ weird\ characters
$\ youtube\-dl\ \-\-get\-filename\ \-o\ "%(title)s.%(ext)s"\ BaW_jenozKc\ \-\-restrict\-filenames
$\ youtube\-dl\ \-\-get\-filename\ \-o\ \[aq]%(title)s.%(ext)s\[aq]\ BaW_jenozKc\ \-\-restrict\-filenames
youtube\-dl_test_video_.mp4\ \ \ \ \ \ \ \ \ \ #\ A\ simple\ file\ name youtube\-dl_test_video_.mp4\ \ \ \ \ \ \ \ \ \ #\ A\ simple\ file\ name
#\ Download\ YouTube\ playlist\ videos\ in\ separate\ directory\ indexed\ by\ video\ order\ in\ a\ playlist
$\ youtube\-dl\ \-o\ \[aq]%(playlist)s/%(playlist_index)s\ \-\ %(title)s.%(ext)s\[aq]\ https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re
#\ Download\ Udemy\ course\ keeping\ each\ chapter\ in\ separate\ directory\ under\ MyVideos\ directory\ in\ your\ home
$\ youtube\-dl\ \-u\ user\ \-p\ password\ \-o\ \[aq]~/MyVideos/%(playlist)s/%(chapter_number)s\ \-\ %(chapter)s/%(title)s.%(ext)s\[aq]\ https://www.udemy.com/java\-tutorial/
#\ Download\ entire\ series\ season\ keeping\ each\ series\ and\ each\ season\ in\ separate\ directory\ under\ C:/MyVideos
$\ youtube\-dl\ \-o\ "C:/MyVideos/%(series)s/%(season_number)s\ \-\ %(season)s/%(episode_number)s\ \-\ %(episode)s.%(ext)s"\ http://videomore.ru/kino_v_detalayah/5_sezon/367617
#\ Stream\ the\ video\ being\ downloaded\ to\ stdout
$\ youtube\-dl\ \-o\ \-\ BaW_jenozKc
\f[] \f[]
.fi .fi
.SH FORMAT SELECTION .SH FORMAT SELECTION

View file

@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=youtube-dl PRGNAM=youtube-dl
VERSION=${VERSION:-2016.02.04} VERSION=${VERSION:-2016.02.10}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}

View file

@ -1,8 +1,8 @@
PRGNAM="youtube-dl" PRGNAM="youtube-dl"
VERSION="2016.02.04" VERSION="2016.02.10"
HOMEPAGE="https://rg3.github.io/youtube-dl" HOMEPAGE="https://rg3.github.io/youtube-dl"
DOWNLOAD="https://github.com/rg3/youtube-dl/archive/2016.02.04.tar.gz" DOWNLOAD="https://github.com/rg3/youtube-dl/archive/2016.02.10.tar.gz"
MD5SUM="06b790ed5913c4b3b1bb65f1a084f96b" MD5SUM="96f5e10d76d7b9cca895ddaca0184ab0"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""