forked from 0x2620/pandora
dont fail if part is an int
This commit is contained in:
parent
54f33394ed
commit
23c48d8290
1 changed files with 2 additions and 0 deletions
|
@ -161,6 +161,8 @@ class File(models.Model):
|
|||
for type in ox.movie.EXTENSIONS:
|
||||
if data['extension'] in ox.movie.EXTENSIONS[type]:
|
||||
data['type'] = type
|
||||
if 'part' in data and isinstance(data['part'], int):
|
||||
data['part'] = str(data['part'])
|
||||
return data
|
||||
|
||||
def normalize_path(self):
|
||||
|
|
Loading…
Reference in a new issue