diff options
| author | Ricardo Garcia <sarbalap+freshmeat@gmail.com> | 2009-03-28 10:26:41 +0100 | 
|---|---|---|
| committer | Ricardo Garcia <sarbalap+freshmeat@gmail.com> | 2010-10-31 11:23:58 +0100 | 
| commit | 79e75f66c88ee1de6018e518bcc1a33cd279f697 (patch) | |
| tree | eaf7dcea3ab2d942c5b633a5d9904d9c609d6d37 | |
| parent | 053e77d6ed1a22fbbb84d40aff64617967d61563 (diff) | |
Remove --best-quality option and add proper support for high definition format
| -rwxr-xr-x | youtube-dl | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/youtube-dl b/youtube-dl index 345bf4df9..bf6973480 100755 --- a/youtube-dl +++ b/youtube-dl @@ -543,7 +543,11 @@ class YoutubeIE(InfoExtractor):  			format_param = params.get('format', None)  		# Extension -		video_extension = {'18': 'mp4', '17': '3gp'}.get(format_param, 'flv') +		video_extension = { +			'17': '3gp', +			'18': 'mp4', +			'22': 'mp4', +		}.get(format_param, 'flv')  		# Normalize URL, including format  		normalized_url = 'http://www.youtube.com/watch?v=%s&gl=US&hl=en' % video_id @@ -960,10 +964,10 @@ if __name__ == '__main__':  				action='store_true', dest='gettitle', help='simulate, quiet but print title', default=False)  		parser.add_option('-f', '--format',  				dest='format', metavar='FMT', help='video format code') -		parser.add_option('-b', '--best-quality', -				action='store_const', dest='format', help='alias for -f 18', const='18')  		parser.add_option('-m', '--mobile-version',  				action='store_const', dest='format', help='alias for -f 17', const='17') +		parser.add_option('-d', '--high-def', +				action='store_const', dest='format', help='alias for -f 22', const='22')  		parser.add_option('-i', '--ignore-errors',  				action='store_true', dest='ignoreerrors', help='continue on download errors', default=False)  		parser.add_option('-r', '--rate-limit',  | 
