diff --git a/main.py b/main.py index f94090b..cd4ce91 100644 --- a/main.py +++ b/main.py @@ -113,28 +113,28 @@ async def main(): return HTMLResponse(content=content) -def generate_html(video_url, video_width, video_height, video_screenshot, video_filename): +def generate_html(url: str, width: int, height: int, screenshot: str, filename: str): video_html = f"""
- + - - - - + + + + """ - video_filename += ".html" + filename += ".html" - with open(f"Uploads/{video_filename}", "w") as file: + with open(f"Uploads/{filename}", "w", encoding="utf-8") as file: file.write(video_html) - return f"{domain}{video_filename}" + return f"{domain}{filename}" def find_video_resolution(path_to_video):