def _check_formats(self, formats, video_id):
    if formats:
        formats[:] = filter((lambda f: self._is_valid_url(f['url'], video_id, item=(('%s video format' % f.get('format_id')) if f.get('format_id') else 'video'))), formats)
def _check_formats(self, formats, video_id):
    if formats:
        formats[:] = filter((lambda f: self._is_valid_url(f['url'], video_id, item=(('%s video format' % f.get('format_id')) if f.get('format_id') else 'video'))), formats)