stream_path

This commit is contained in:
j 2010-12-07 19:45:26 +01:00
parent 3ae5b10bd4
commit b0b02a1f45

View file

@ -633,7 +633,7 @@ class Item(models.Model):
#FIXME: how to detect if something changed? #FIXME: how to detect if something changed?
if files: if files:
stream, created = Stream.objects.get_or_create(item=self, profile='%s.webm' % settings.VIDEO_PROFILE) stream, created = Stream.objects.get_or_create(item=self, profile='%s.webm' % settings.VIDEO_PROFILE)
stream.video.name = stream_path(stream) stream.video.name = stream.path()
cmd = [] cmd = []
print files print files
for f in sorted(files): for f in sorted(files):