diff --git a/app.py b/app.py index 1fbf4b2..e9d6295 100644 --- a/app.py +++ b/app.py @@ -331,6 +331,8 @@ def proxy(video_id): cdn_video_url = get_cdn_url(video_id) og_tags = soup.find_all("meta", attrs={"property": True}) + if len(og_tags) == 0: + logger.warning(f"{video_id}: No Open Graph tags found") og_title = None og_description = None for tag in og_tags: