[globo] Improve http formats
authorSergey M․ <dstftw@gmail.com>
Wed, 4 Nov 2015 11:03:45 +0000 (17:03 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 4 Nov 2015 11:03:45 +0000 (17:03 +0600)
youtube_dl/extractor/globo.py

index dc89e46ac237f99982ffd09aadcfbf9162f20d7d..64622aa5cbeba7c17a9f4552665bdcb11e647539 100644 (file)
@@ -361,8 +361,8 @@ class GloboIE(InfoExtractor):
             else:
                 formats.append({
                     'url': signed_url,
-                    'format_id': resource_id,
-                    'height': resource.get('height'),
+                    'format_id': 'http-%s' % resource_id,
+                    'height': int_or_none(resource.get('height')),
                 })
 
         self._sort_formats(formats)