diff options
author | Ricardo Garcia <sarbalap+freshmeat@gmail.com> | 2009-05-13 22:08:34 +0200 |
---|---|---|
committer | Ricardo Garcia <sarbalap+freshmeat@gmail.com> | 2010-10-31 11:24:16 +0100 |
commit | b74c859d0ffe2250c7730f18f24e9515084e838a (patch) | |
tree | cd4ea321767cfd927fcc26061671e798cdd7c854 | |
parent | 0e543200095a6505ebedfb63be4317bba2c3506a (diff) |
Use store_const instead of append_const as the latter requires Python 2.5
-rwxr-xr-x | youtube-dl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube-dl b/youtube-dl index db9510f7b..b2dc7952d 100755 --- a/youtube-dl +++ b/youtube-dl @@ -1022,11 +1022,11 @@ if __name__ == '__main__': video_format.add_option('-f', '--format', action='append', dest='format', metavar='FMT', help='video format code') video_format.add_option('-b', '--best-quality', - action='append_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', - action='append_const', dest='format', help='alias for -f 17', const='17') + action='store_const', dest='format', help='alias for -f 17', const='17') video_format.add_option('-d', '--high-def', - action='append_const', dest='format', help='alias for -f 22', const='22') + action='store_const', dest='format', help='alias for -f 22', const='22') parser.add_option_group(video_format) verbosity = optparse.OptionGroup(parser, 'Verbosity / Simulation Options') |