master
Aevann1 2021-12-08 00:44:23 +02:00
parent 1ad1d61cca
commit 3faf28605d
3 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ def sanitize(sanitized, noimages=False):
sanitized = sanitized.replace(replacing, htmlsource)
for i in re.finditer('<p>(https:.*?\.mp4)</p>', sanitized):
sanitized = sanitized.replace(i.group(0), f'<p><video controls loop preload="metadata" class="embedvid"><source src="{i.group(1)}" type="video/mp4"></video>')
sanitized = sanitized.replace(i.group(0), f'<p><video controls preload="metadata" class="embedvid"><source src="{i.group(1)}" type="video/mp4"></video>')
for i in re.finditer('<a href="(https://open\.spotify\.com/embed/.*?)"', sanitized):
url = i.group(1)

View File

@ -449,7 +449,7 @@
{% elif p.url and p.url.lower().endswith('.mp4') %}
<div class="row no-gutters">
<div class="col">
<video controls loop preload="metadata" style="max-width: 100%">
<video controls preload="metadata" style="max-width: 100%">
<source src="{{ p.realurl(v) }}" type="video/mp4">
</video>
</div>

View File

@ -487,7 +487,7 @@
{% if p.url and p.url.lower().endswith('.mp4') %}
<div id="video-{{p.id}}" style="text-align: center" class="{% if p.over_18 or not ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}d-none{% endif %} mt-4">
<video controls loop preload="metadata" style="max-width:100%;max-height:20rem">
<video controls preload="metadata" style="max-width:100%;max-height:20rem">
<source src="{{p.realurl(v)}}" type="video/mp4">
</video>
</div>