From: Ricardo Garcia Date: Tue, 26 May 2009 19:26:09 +0000 (+0200) Subject: Fix TypeError when using the -f option (fixes issue #24) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=daa88ccc2e6ac9c184baa62ec411eb13180a00f8;p=youtube-dl Fix TypeError when using the -f option (fixes issue #24) --- diff --git a/youtube-dl b/youtube-dl index 5ead5e4c9..9d84c3560 100755 --- a/youtube-dl +++ b/youtube-dl @@ -1053,7 +1053,7 @@ if __name__ == '__main__': video_format = optparse.OptionGroup(parser, 'Video Format Options') video_format.add_option('-f', '--format', - action='append', dest='format', metavar='FMT', help='video format code') + action='store', dest='format', metavar='FMT', help='video format code') video_format.add_option('-b', '--best-quality', action='store_const', dest='format', help='download the best quality video possible', const='0') video_format.add_option('-m', '--mobile-version',