Skip to content

Commit

Permalink
Add --mobile-version program option
Browse files Browse the repository at this point in the history
  • Loading branch information
rg3 authored and Ricardo Garcia committed Jul 22, 2008
1 parent 2130d8f commit 9066328
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion youtube-dl
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 9066328

Please sign in to comment.