print-debugging

master
Aevann 2024-11-14 01:58:30 +02:00
parent d344b9c6de
commit 4e57b31fa3
1 changed files with 5 additions and 0 deletions

View File

@ -674,6 +674,9 @@ def submit_post(v, hole=None):
) )
g.db.add(vote) g.db.add(vote)
print(p.url, flush=True)
print(SITE_FULL_VIDEOS, flush=True)
if request.files.get('file-url') and not g.is_tor: if request.files.get('file-url') and not g.is_tor:
file = request.files['file-url'] file = request.files['file-url']
@ -697,7 +700,9 @@ def submit_post(v, hole=None):
stop(415) stop(415)
elif p.url and p.url.startswith(SITE_FULL_VIDEOS): elif p.url and p.url.startswith(SITE_FULL_VIDEOS):
filename = '/videos' + p.url.split(SITE_FULL_VIDEOS)[1] filename = '/videos' + p.url.split(SITE_FULL_VIDEOS)[1]
print(filename, flush=True)
media = g.db.get(Media, filename) media = g.db.get(Media, filename)
print(media, flush=True)
if media: if media:
media_usage = MediaUsage( media_usage = MediaUsage(
filename=filename, filename=filename,