[udemy] Fix outputs' formats format_id
authorSergey M․ <dstftw@gmail.com>
Sat, 26 Mar 2016 17:43:25 +0000 (23:43 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 26 Mar 2016 17:43:25 +0000 (23:43 +0600)
youtube_dl/extractor/udemy.py

index 100db4dd02339208c85df55fff0edddbf4403aff..89e7132858e765aa60d801b87c2d85ce6cb755a7 100644 (file)
@@ -201,7 +201,7 @@ class UdemyIE(InfoExtractor):
         def extract_output_format(src):
             return {
                 'url': src['url'],
-                'format_id': '%sp' % (src.get('label') or format_id),
+                'format_id': '%sp' % (src.get('height') or format_id),
                 'width': int_or_none(src.get('width')),
                 'height': int_or_none(src.get('height')),
                 'vbr': int_or_none(src.get('video_bitrate_in_kbps')),