]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Do not handle format selection for IEs that already handle it
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 13 Jul 2013 15:51:26 +0000 (17:51 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 11 Oct 2013 14:34:48 +0000 (16:34 +0200)
youtube_dl/YoutubeDL.py

index d88378ddac8fac380d9f091e7d82dd2666bf85fc..c6235abd313f94ec7f6271aaeb174ed493e2da78 100644 (file)
@@ -451,6 +451,11 @@ class YoutubeDL(object):
             info_dict['playlist'] = None
             info_dict['playlist_index'] = None
 
+        # This extractors handle format selection themselves
+        if info_dict['extractor'] in [u'youtube', u'Youku', u'YouPorn', u'mixcloud']:
+            self.process_info(info_dict)
+            return info_dict
+
         # We now pick which formats have to be downloaded
         if info_dict.get('formats') is None:
             # There's only one format available