From 523bfd93c5afcfea2c8768c0a2593f02ca4284b3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 1 Sep 2022 22:43:11 +0200 Subject: [PATCH] show first frame of video --- files/helpers/sanitize.py | 4 ++-- files/templates/formatting.html | 2 +- files/templates/submission.html | 4 ++-- files/templates/submission_listing.html | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index da1a600b5..eb7c60641 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -319,8 +319,8 @@ def sanitize(sanitized, edit=False, limit_pings=0, showmore=True): sanitized = sanitized.replace(i.group(0), htmlsource) - sanitized = video_sub_regex.sub(r'\1', sanitized) - sanitized = audio_sub_regex.sub(r'\1', sanitized) + sanitized = video_sub_regex.sub(r'\1', sanitized) + sanitized = audio_sub_regex.sub(r'\1', sanitized) if not edit: for marsey in g.db.query(Marsey).filter(Marsey.name.in_(marseys_used)).all(): diff --git a/files/templates/formatting.html b/files/templates/formatting.html index bfbf99e92..d49be8bf1 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -79,7 +79,7 @@ Text 2 Video Files https://files.catbox.moe/v4om92.mp4 - + Emojis diff --git a/files/templates/submission.html b/files/templates/submission.html index 7a8cd60d5..6ab2438e0 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -765,7 +765,7 @@ {% elif p.is_video %}
-
@@ -774,7 +774,7 @@ {% elif p.is_audio %}
- +

diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html
index e048d76f1..97ba8540e 100644
--- a/files/templates/submission_listing.html
+++ b/files/templates/submission_listing.html
@@ -372,13 +372,13 @@
 		
{% elif p.is_video %}
-
{% elif p.is_audio %}
- +
{% elif p.is_youtube %}