X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2F__init__.py;h=1e01432d27c92dd92e82794f91870ca0eb2eff68;hb=0364fa8b65a6c6742454ec5f3a858e06dc1527f7;hp=42ef13786bf2e9c228f02b6f4568270d682fd57d;hpb=66398056f17d0a9c04861a98b6e95d70ab08a353;p=youtube-dl diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 42ef13786..1e01432d2 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -53,6 +53,12 @@ __authors__ = ( 'Mattias Harrysson', 'phaer', 'Sainyam Kapoor', + 'Nicolas Évrard', + 'Jason Normore', + 'Hoje Lee', + 'Adam Thalhammer', + 'Georg Jähnig', + 'Ralf Haring', ) __license__ = 'Public Domain' @@ -72,6 +78,7 @@ from .utils import ( compat_getpass, compat_print, DateRange, + DEFAULT_OUTTMPL, decodeOption, get_term_width, DownloadError, @@ -676,7 +683,7 @@ def _real_main(argv=None): if not opts.audioquality.isdigit(): parser.error(u'invalid audio quality specified') if opts.recodevideo is not None: - if opts.recodevideo not in ['mp4', 'flv', 'webm', 'ogg']: + if opts.recodevideo not in ['mp4', 'flv', 'webm', 'ogg', 'mkv']: parser.error(u'invalid video recode format specified') if opts.date is not None: date = DateRange.day(opts.date) @@ -705,7 +712,7 @@ def _real_main(argv=None): or (opts.usetitle and u'%(title)s-%(id)s.%(ext)s') or (opts.useid and u'%(id)s.%(ext)s') or (opts.autonumber and u'%(autonumber)s-%(id)s.%(ext)s') - or u'%(title)s-%(id)s.%(ext)s') + or DEFAULT_OUTTMPL) if not os.path.splitext(outtmpl)[1] and opts.extractaudio: parser.error(u'Cannot download a video and extract audio into the same' u' file! Use "{0}.%(ext)s" instead of "{0}" as the output'