def process_formats(formats):
    for f in formats:
        f.setdefault('http_headers', {})['User-Agent'] = 'facebookexternalhit/1.1'
    self._sort_formats(formats)
def process_formats(formats):
    for f in formats:
        f.setdefault('http_headers', {})['User-Agent'] = 'facebookexternalhit/1.1'
    self._sort_formats(formats)