From 23c48d8290f3dce3da98a5993611e026da220a9c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 21 Jun 2013 14:19:25 +0200 Subject: [PATCH] dont fail if part is an int --- pandora/archive/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 84c2151b..8f019aa9 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -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):