Warning if no OG tags found
This commit is contained in:
parent
255a12fcc6
commit
a075a5a7a2
1 changed files with 2 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue