diff --git a/run.py b/run.py index 476ae67..592f361 100755 --- a/run.py +++ b/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') diff --git a/static/media/DMCA.webm b/static/dmca/DMCA.webm similarity index 100% rename from static/media/DMCA.webm rename to static/dmca/DMCA.webm diff --git a/templates/dmca.html b/templates/dmca.html index 810453b..a3d716e 100644 --- a/templates/dmca.html +++ b/templates/dmca.html @@ -1,7 +1,7 @@ {% extends "regular.html" %} {% block body %}

Please send an e-mail to abuse@quad.moe for removal requests

{% endblock %} \ No newline at end of file