aboutsummaryrefslogtreecommitdiff
path: root/youtube-dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2011-09-30 09:07:36 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2011-09-30 09:07:36 +0200
commit2761012f69f063c65dce35f5667fdbeedad6837e (patch)
treeee49131660f90b87e6f8df1049cd43eaed04bc39 /youtube-dl
parent3de2a1e63595741f7b7ea19b7ead7b212bf4d42f (diff)
downloadyoutube-dl-2761012f69f063c65dce35f5667fdbeedad6837e.tar.xz
Cosmetic changes to --list-formats
Diffstat (limited to 'youtube-dl')
-rwxr-xr-xyoutube-dl6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube-dl b/youtube-dl
index 09f8ddd98..3d8c18c6e 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -1352,7 +1352,7 @@ class YoutubeIE(InfoExtractor):
return
if self._downloader.params.get('listformats', None):
self._print_formats(existing_formats)
- sys.exit(0)
+ return
if req_format is None or req_format == 'best':
video_url_list = [(existing_formats[0], url_map[existing_formats[0]])] # Best quality
elif req_format == 'worst':
@@ -3587,8 +3587,8 @@ def parseOpts():
action='store_const', dest='format', help='download all available video formats', const='all')
video_format.add_option('--max-quality',
action='store', dest='format_limit', metavar='FORMAT', help='highest quality format to download')
- video_format.add_option('-L', '--list-formats',
- action='store_true', dest='listformats', help='list all available formats')
+ video_format.add_option('-F', '--list-formats',
+ action='store_true', dest='listformats', help='list all available formats (currently youtube only)')
verbosity.add_option('-q', '--quiet',