Remove .html from JSON output
This commit is contained in:
4
main.py
4
main.py
@ -160,13 +160,13 @@ def generate_html(
|
|||||||
</head>
|
</head>
|
||||||
</html>
|
</html>
|
||||||
"""
|
"""
|
||||||
|
html_url = f"{domain}{filename}"
|
||||||
filename += ".html"
|
filename += ".html"
|
||||||
|
|
||||||
with open(f"Uploads/{filename}", "w", encoding="utf-8") as file:
|
with open(f"Uploads/{filename}", "w", encoding="utf-8") as file:
|
||||||
file.write(video_html)
|
file.write(video_html)
|
||||||
|
|
||||||
return f"{domain}{filename}"
|
return html_url
|
||||||
|
|
||||||
|
|
||||||
def find_video_resolution(path_to_video: str) -> tuple[int, int]:
|
def find_video_resolution(path_to_video: str) -> tuple[int, int]:
|
||||||
|
Reference in New Issue
Block a user