From f4b659f782b65fbc52348c034bfc13ba1f7994ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Tue, 23 Apr 2013 10:33:54 +0200 Subject: [PATCH] Document order of preference for format selection (closes #798) --- README.md | 3 ++- youtube_dl/__init__.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5c7d8b66a..0ab4b660c 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,8 @@ which means you can modify it, redistribute it or use it however you like. verbose) ## Video Format Options: - -f, --format FORMAT video format code + -f, --format FORMAT video format code, specifiy the order of + preference using slashes: "-f 22/17/18" --all-formats download all available video formats --prefer-free-formats prefer free video formats unless a specific one is requested diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 7df297d02..74375175d 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -165,7 +165,8 @@ def parseOpts(overrideArguments=None): video_format.add_option('-f', '--format', - action='store', dest='format', metavar='FORMAT', help='video format code') + action='store', dest='format', metavar='FORMAT', + help='video format code, specifiy the order of preference using slashes: "-f 22/17/18"') 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',