From: Sergey M․ Date: Wed, 4 Nov 2015 11:03:45 +0000 (+0600) Subject: [globo] Improve http formats X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a4a6b7b80f18680ee0a8bba50a24c58edd3f2a73;p=youtube-dl [globo] Improve http formats --- diff --git a/youtube_dl/extractor/globo.py b/youtube_dl/extractor/globo.py index dc89e46ac..64622aa5c 100644 --- a/youtube_dl/extractor/globo.py +++ b/youtube_dl/extractor/globo.py @@ -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)