add extract
This commit is contained in:
parent
052aeb7ba4
commit
32558967e0
2 changed files with 297 additions and 0 deletions
|
|
@ -401,6 +401,7 @@ class Movie(models.Model):
|
|||
for f in self.files.filter(is_main=True, video_available=True):
|
||||
files[utils.sort_title(f.name)] = f.video.path
|
||||
|
||||
#FIXME: how to detect if something changed?
|
||||
if files:
|
||||
stream, created = Stream.objects.get_or_create(movie=self, profile='%s.webm' % settings.VIDEO_PROFILE)
|
||||
stream.video.name = stream_path(stream)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue