summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2009-05-26 21:26:09 +0200
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:24:36 +0100
commitdaa88ccc2e6ac9c184baa62ec411eb13180a00f8 (patch)
tree957c7d4cb9bce99e38fb3222a5a7831878737fda
parenteb5d184157af39ff65b6103ccea73749cb2e24c1 (diff)
downloadyoutube-dl-daa88ccc2e6ac9c184baa62ec411eb13180a00f8.tar.gz
youtube-dl-daa88ccc2e6ac9c184baa62ec411eb13180a00f8.tar.xz
youtube-dl-daa88ccc2e6ac9c184baa62ec411eb13180a00f8.zip
Fix TypeError when using the -f option (fixes issue #24)
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
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',