Warning if no OG tags found
This commit is contained in:
parent
255a12fcc6
commit
a075a5a7a2
2
app.py
2
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user