1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

Fix TypeError when using the -f option (fixes issue #24)

This commit is contained in:
Ricardo Garcia 2009-05-26 21:26:09 +02:00
parent eb5d184157
commit daa88ccc2e

View File

@ -1053,7 +1053,7 @@ if __name__ == '__main__':
video_format = optparse.OptionGroup(parser, 'Video Format Options') video_format = optparse.OptionGroup(parser, 'Video Format Options')
video_format.add_option('-f', '--format', 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', video_format.add_option('-b', '--best-quality',
action='store_const', dest='format', help='download the best quality video possible', const='0') action='store_const', dest='format', help='download the best quality video possible', const='0')
video_format.add_option('-m', '--mobile-version', video_format.add_option('-m', '--mobile-version',