subtitles available
This commit is contained in:
parent
0d5e6e64f6
commit
64671d32b7
1 changed files with 4 additions and 1 deletions
|
@ -151,6 +151,9 @@ class File(models.Model):
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
if self.auto:
|
if self.auto:
|
||||||
self.set_state()
|
self.set_state()
|
||||||
|
if self.is_subtitle:
|
||||||
|
self.available = self.data and True or False
|
||||||
|
else:
|
||||||
self.available = self.streams.filter(source=None, available=True).count() > 0
|
self.available = self.streams.filter(source=None, available=True).count() > 0
|
||||||
super(File, self).save(*args, **kwargs)
|
super(File, self).save(*args, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue