This commit is contained in:
j 2016-09-07 15:05:32 +02:00
parent 8dbe22b6ea
commit 0dd6b1132e
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ def oxdb_sortnames(names):
try:
sort_names = oxdb_api.sortName(names=names)['data'].values()
except:
sort_names = map(canonical_name, names)
sort_names = list(map(canonical_name, names))
return sort_names
def get_movie_id(imdb_id):

View file

@ -122,9 +122,9 @@ class Imdb(models.Model):
if isinstance(value, string_types):
value = normalize_value(value)
setattr(self, key, value)
if self.season < 0:
if self.season and self.season < 0:
self.season = None
if self.episode < 0:
if self.episode and self.episode < 0:
self.episode = None
self.save()
elif not self.invalid: