X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2F__init__.py;h=0e9504c1485cdc4a6ba09968f1331615f0b8942f;hb=685052fc7b8e7c70fc524098e45f0c1052c5eaec;hp=2aaafd37a30e5b51af74b8bdfaddd53c4a20b895;hpb=eda1d49a62b92b3dbefd8b80702a5dec7f0617ad;p=youtube-dl diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 2aaafd37a..0e9504c14 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -47,12 +47,17 @@ __authors__ = ( 'Michael Kaiser', 'Niklas Laxström', 'David Triendl', + 'Anthony Weems', + 'David Wagner', + 'Juan C. Olivares', + 'Mattias Harrysson', ) __license__ = 'Public Domain' import codecs import getpass +import io import locale import optparse import os @@ -311,7 +316,7 @@ def parseOpts(overrideArguments=None): video_format.add_option('-f', '--format', action='store', dest='format', metavar='FORMAT', default=None, - help='video format code, specify the order of preference using slashes: "-f 22/17/18". "-f mp4" and "-f flv" are also supported. You can also use the special names "best", "bestaudio", "worst", and "worstaudio". By default, youtube-dl will pick the best quality.') + help='video format code, specify the order of preference using slashes: "-f 22/17/18". "-f mp4" and "-f flv" are also supported. You can also use the special names "best", "bestvideo", "bestaudio", "worst", "worstvideo" and "worstaudio". By default, youtube-dl will pick the best quality.') video_format.add_option('--all-formats', action='store_const', dest='format', help='download all available video formats', const='all') video_format.add_option('--prefer-free-formats', @@ -426,6 +431,8 @@ def parseOpts(overrideArguments=None): '%(extractor)s for the provider (youtube, metacafe, etc), ' '%(id)s for the video id, %(playlist)s for the playlist the video is in, ' '%(playlist_index)s for the position in the playlist and %% for a literal percent. ' + '%(height)s and %(width)s for the width and height of the video format. ' + '%(resolution)s for a textual description of the resolution of the video format. ' 'Use - to output to stdout. Can also be used to download to a different directory, ' 'for example with -o \'/my/downloads/%(uploader)s/%(title)s-%(id)s.%(ext)s\' .')) filesystem.add_option('--autonumber-size',