forked from 0x2620/pandora
get_or_create clip
This commit is contained in:
parent
95ce013aa4
commit
a546d07b73
4 changed files with 39 additions and 20 deletions
|
|
@ -135,8 +135,9 @@ class File(models.Model):
|
|||
self.is_subtitle = False
|
||||
|
||||
self.type = self.get_type()
|
||||
info = ox.parse_movie_path(self.path)
|
||||
self.language = info['language']
|
||||
if self.instances.count()>0:
|
||||
info = ox.parse_movie_path(self.path)
|
||||
self.language = info['language']
|
||||
self.part = self.get_part()
|
||||
|
||||
if self.type not in ('audio', 'video'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue