ass seriesYear, episodeDirector to hardcoded fields, fixes #971

This commit is contained in:
j 2012-11-07 00:47:18 +01:00
parent cddb6f6560
commit b8a5ba568d

View file

@ -245,7 +245,7 @@ class Item(models.Model):
self.data[key] = [ox.sanitize_html(t) for t in data[key]] self.data[key] = [ox.sanitize_html(t) for t in data[key]]
elif ktype == '[string]': elif ktype == '[string]':
self.data[key] = [ox.escape_html(t) for t in data[key]] self.data[key] = [ox.escape_html(t) for t in data[key]]
elif key in ('episodeTitle', 'seriesTitle'): elif key in ('episodeTitle', 'seriesTitle', 'episodeDirector', 'seriesYear'):
self.data[key] = ox.escape_html(data[key]) self.data[key] = ox.escape_html(data[key])
elif isinstance(data[key], basestring): elif isinstance(data[key], basestring):
self.data[key] = ox.escape_html(data[key]) self.data[key] = ox.escape_html(data[key])