]> Raphaël G. Git Repositories - youtubedl/blobdiff - debian/patches/01-add-support-to-webm.patch
Imported Debian patch 2010.06.06-1
[youtubedl] / debian / patches / 01-add-support-to-webm.patch
index e1e9a394a460f93fb963bb87fac7f873f2485272..b4767700f53eab24ce5baa89a5f56229a5728448 100644 (file)
@@ -1,24 +1,16 @@
-Description: Add support for webm (VP8 video + Vorbis audio)
+Description: Reorder preference of video formats
 Author: Rogério Brito <rbrito@ime.usp.br>
 Forwarded: no
-Last-Update: 2010-05-29
+Last-Update: 2010-06-07
 
 --- a/youtube-dl
 +++ b/youtube-dl
-@@ -649,13 +649,15 @@
+@@ -685,7 +685,7 @@
        _LOGIN_URL = 'http://www.youtube.com/signup?next=/&gl=US&hl=en'
        _AGE_URL = 'http://www.youtube.com/verify_age?next_url=/&gl=US&hl=en'
        _NETRC_MACHINE = 'youtube'
 -      _available_formats = ['37', '22', '35', '18', '34', '5', '17', '13', None] # listed in order of priority for -b flag
-+      _available_formats = ['45', '43', '37', '22', '35', '18', '34', '5', '17', '13', None] # listed in order of priority for -b flag
++      _available_formats = ['37', '45', '22', '35', '18', '43', '34', '5', '17', '13', None] # listed in order of priority for -b flag
        _video_extensions = {
                '13': '3gp',
                '17': 'mp4',
-               '18': 'mp4',
-               '22': 'mp4',
-               '37': 'mp4',
-+              '43': 'webm',
-+              '45': 'webm'
-       }
-       @staticmethod