aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2008-07-22 22:18:51 +0200
committerRicardo Garcia <devnull@localhost>2008-07-22 22:18:51 +0200
commit90663284b2c742ae84d3dd00876af9b681ee78ee (patch)
tree32fe6aa1ef6fae6ee8a5c6a870ec53f8e13d3bf5
parent2130d8f6a497ca6219d4b3979cc5dcc6845827fc (diff)
Add --mobile-version program option
-rwxr-xr-xyoutube-dl4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 0e5616220..2c1d1aa3b 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -437,7 +437,7 @@ class YoutubeIE(InfoExtractor):
format_param = params.get('format', None)
# Extension
- video_extension = {'18': 'mp4'}.get(format_param, 'flv')
+ video_extension = {'18': 'mp4', '17': '3gp'}.get(format_param, 'flv')
# Normalize URL, including format
normalized_url = 'http://www.youtube.com/watch?v=%s' % video_id
@@ -537,6 +537,8 @@ if __name__ == '__main__':
dest='format', metavar='FMT', help='video format code')
parser.add_option('-b', '--best-quality',
action='store_const', dest='video_format', help='alias for -f 18', const='18')
+ parser.add_option('-m', '--mobile-version',
+ action='store_const', dest='video_format', help='alias for -f 17', const='17')
parser.add_option('-i', '--ignore-errors',
action='store_true', dest='ignoreerrors', help='continue on download errors', default=False)
(opts, args) = parser.parse_args()