fix file create

This commit is contained in:
j 2023-07-28 19:18:31 +02:00
parent 094fb06b92
commit 5c951e2559

View file

@ -285,7 +285,7 @@ class File(models.Model):
if self.is_subtitle:
self.available = self.data and True or False
else:
elif self.id:
self.available = not self.uploading and \
self.streams.filter(source=None, available=True).count()
super(File, self).save(*args, **kwargs)