Random videos, yay
This commit is contained in:
parent
d16408cd91
commit
348682af7e
4
run.py
4
run.py
|
@ -4,6 +4,7 @@ from werkzeug import secure_filename
|
|||
from threading import Thread
|
||||
import logging
|
||||
import os
|
||||
import random
|
||||
import json
|
||||
import time
|
||||
from random import randint
|
||||
|
@ -121,7 +122,8 @@ def faq():
|
|||
return render_template('faq.html', page=config["SITE_DATA"])
|
||||
@app.route('/dmca')
|
||||
def dmca():
|
||||
return render_template('dmca.html', page=config["SITE_DATA"])
|
||||
video = random.choice(os.listdir("static/dmca/"))
|
||||
return render_template('dmca.html', page=config["SITE_DATA"], video=video)
|
||||
|
||||
# Static resources that browsers spam for
|
||||
@app.route('/favicon.ico')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "regular.html" %}
|
||||
{% block body %}
|
||||
<video class="dmca" autoplay loop>
|
||||
<source src="{{ url_for('static', filename='media/DMCA.webm') }}">
|
||||
<source src="{{ url_for('static', filename='dmca/' + video) }}">
|
||||
</video>
|
||||
<p class="note">Please send an e-mail to <a href="mailto:abuse@quad.moe">abuse@quad.moe</a> for removal requests</p>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue