!

How about `filter(None, (_scrape_media_object(url, autoplay=autoplay, maxwidth=maxwidth) for url in urls[:max_embeds]))` instead?