From aa755dc186bb79608d55fd9f0685d9433f0e34a7 Mon Sep 17 00:00:00 2001 From: MMaker Date: Mon, 3 Mar 2025 13:06:22 -0500 Subject: [PATCH] Try to fix oEmbed --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index e9d6295..8956e84 100644 --- a/app.py +++ b/app.py @@ -353,7 +353,10 @@ def proxy(video_id): tag["content"] = cdn_video_url og_tags_str = "\n".join(str(tag) for tag in og_tags if tag.get("property") not in ["og:site_name"]) + og_tags_str += '\n' + og_tags_str += f'\n' if 'twitterbot' in request_user_agent: + logger.info(f"{video_id}: Twitterbot detected - adding Twitter tags") og_tags_str += f'\n' og_tags_str += '\n' og_tags_str += '\n' @@ -368,8 +371,6 @@ def proxy(video_id): # og_tags_str += f'\n' # if video_height: # og_tags_str += f'\n' - og_tags_str += '\n' - og_tags_str += f'\n' html_response = f"""