Merge branch 'master' into vimeo
authorRogério Brito <rbrito@ime.usp.br>
Fri, 25 Feb 2011 23:08:12 +0000 (20:08 -0300)
committerRogério Brito <rbrito@ime.usp.br>
Fri, 25 Feb 2011 23:08:12 +0000 (20:08 -0300)
1  2 
youtube-dl

diff --cc youtube-dl
index 782372688918ba638206e8a755e849f1ee7527bd,072a919707fa3bdfd805f90ab7765ad9bdd8eb34..9ce89aaf0cb56ad658790d4ab7dcfb11ca1395c3
@@@ -2921,9 -2893,11 +3010,12 @@@ if __name__ == '__main__'
                                raise ValueError
                except (TypeError, ValueError), err:
                        parser.error(u'invalid playlist end number specified')
+               if opts.extractaudio:
+                       if opts.audioformat not in ['best', 'aac', 'mp3']:
+                               parser.error(u'invalid audio format specified')
  
                # Information extractors
 +              vimeo_ie = VimeoIE()
                youtube_ie = YoutubeIE()
                metacafe_ie = MetacafeIE(youtube_ie)
                dailymotion_ie = DailymotionIE()