summaryrefslogtreecommitdiff
path: root/app/media/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-06-05 09:10:24 -0500
committerluxagraf <sng@luxagraf.net>2023-06-05 09:10:24 -0500
commitc86ac51858ea137b71d6cef8fe84d6ab0f882e14 (patch)
tree450202204b63977e4cc527e854581423be3f3281 /app/media/models.py
parent4fdb134219a9259ae69b00cd22e043048c71f249 (diff)
media: added a webm helper so I can ssh up videos
Diffstat (limited to 'app/media/models.py')
-rw-r--r--app/media/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/media/models.py b/app/media/models.py
index 64f427a..d1ef32a 100644
--- a/app/media/models.py
+++ b/app/media/models.py
@@ -42,6 +42,7 @@ def add_webm(filepath, luxvideo):
video = LuxVideo.objects.get(title=luxvideo)
video.video_webm.save(filepath, django_file, save=True)
+
def get_upload_path(self, filename):
return "images/original/%s/%s" % (datetime.datetime.today().strftime("%Y"), filename)