From 74d96475c9154eaf1455400c550e4565c6401ba6 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Tue, 7 Sep 2021 17:48:57 +0200 Subject: [PATCH 1/3] die --- files/routes/posts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index bb8c17363..cd878811b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -919,6 +919,7 @@ def submit_post(v): else: try: post_url = upload_video(file) + print(post_url) new_post.url = post_url new_post.processing = True gevent.spawn(check_processing_thread, v.id, new_post, post_url, g.db) From 5e0c719c2cb2bc3970e86109b49491920a79cade Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Tue, 7 Sep 2021 17:53:41 +0200 Subject: [PATCH 2/3] dg --- files/routes/posts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index cd878811b..f8617f75d 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -919,6 +919,9 @@ def submit_post(v): else: try: post_url = upload_video(file) + # shit to make webm work + if not post_url.endswith('.mp4'): + post_url += 'mp4' print(post_url) new_post.url = post_url new_post.processing = True From 469752ca680faa6ed35979936cbdc485beb2080f Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Tue, 7 Sep 2021 17:57:17 +0200 Subject: [PATCH 3/3] dg --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index f8617f75d..596dc33ee 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -922,7 +922,7 @@ def submit_post(v): # shit to make webm work if not post_url.endswith('.mp4'): post_url += 'mp4' - print(post_url) + # print(post_url) new_post.url = post_url new_post.processing = True gevent.spawn(check_processing_thread, v.id, new_post, post_url, g.db)