From f18e946bacfc653253c504cab6af80564d45ec2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Fri, 29 Oct 2021 02:13:51 +0200 Subject: [PATCH] Remove .html from JSON output --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index bbefbfc..a5e29e7 100644 --- a/main.py +++ b/main.py @@ -160,13 +160,13 @@ def generate_html( """ - + html_url = f"{domain}{filename}" filename += ".html" with open(f"Uploads/{filename}", "w", encoding="utf-8") as file: file.write(video_html) - return f"{domain}{filename}" + return html_url def find_video_resolution(path_to_video: str) -> tuple[int, int]: