Browse Source

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

master
Ricardo Garcia 15 years ago
parent
commit
daa88ccc2e
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube-dl

2
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',

Loading…
Cancel
Save