This commit is contained in:
j 2011-02-24 17:28:44 +01:00
commit 6eff556204
2 changed files with 5 additions and 2 deletions

View file

@ -126,9 +126,12 @@ class File(models.Model):
if not self.is_audio and not self.is_video and self.name.endswith('.srt'):
self.is_subtitle = True
if self.name and self.name.startswith('Extras/'):
if self.name and self.name.lower().startswith('extras/'):
self.is_extra = True
self.is_main = False
elif self.name and self.name.lower().startswith('versions/'):
self.is_version = True
self.is_main = False
else:
self.is_extra = False
self.is_main = True