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