Fix TypeError when using the -f option (fixes issue #24)
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Tue, 26 May 2009 19:26:09 +0000 (21:26 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:24:36 +0000 (11:24 +0100)
youtube-dl

index 5ead5e4c90d4032d12b9325ede35358dc609e6df..9d84c3560b5131d5aca4800f59a38c5714b40732 100755 (executable)
@@ -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',