forked from MarseyWorld/MarseyWorld
master
parent
e5d0dc0199
commit
0f1fc72339
|
@ -402,17 +402,17 @@
|
|||
{% endif %}
|
||||
|
||||
{% if p.is_video %}
|
||||
<div id="video-{{p.id}}" style="text-align: center" class="{% if v and not v.cardview %}d-none{% endif %} mt-4">
|
||||
<div id="video-{{p.id}}" style="text-align: center" class="{% if v and not v.cardview or p.over_18 %}d-none{% endif %} mt-4">
|
||||
<video controls preload="metadata" style="max-width: 100%">
|
||||
<source src="{{p.realurl(v)}}" type="video/mp4">
|
||||
</video>
|
||||
</div>
|
||||
{% elif p.embed_url and "youtu" in p.domain %}
|
||||
<div id="video-{{p.id}}" style="text-align: center" class="{% if v and not v.cardview %}d-none{% endif %} mt-3 mb-4">
|
||||
<div id="video-{{p.id}}" style="text-align: center" class="{% if v and not v.cardview or p.over_18 %}d-none{% endif %} mt-3 mb-4">
|
||||
<iframe loading="lazy" src="{{p.embed_url}}" frameborder="0" style="max-width: 100%" width="600" height="337" allow="fullscreen"></iframe>
|
||||
</div>
|
||||
{% elif p.url and "streamable.com/e/" in p.url %}
|
||||
<div id="video-{{p.id}}" style="text-align: center" class="{% if v and not v.cardview %}d-none{% endif %} mt-3 mb-4">
|
||||
<div id="video-{{p.id}}" style="text-align: center" class="{% if v and not v.cardview or p.over_18 %}d-none{% endif %} mt-3 mb-4">
|
||||
<iframe loading="lazy" src="{{p.url}}" frameborder="0" style="max-width: 100%" width="600" height="337" allow="fullscreen"></iframe>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue