From f30a3fa70cd9a0f42f05839415ef8d52cfdc7ae5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 24 Aug 2013 13:34:16 +0200 Subject: [PATCH] paths are not html, fixes #1823 --- pandora/archive/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 5bc374733..c2e5eeaca 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -145,6 +145,10 @@ class File(models.Model): if self.item: for key in self.ITEM_INFO: data[key] = self.item.get(key) + if isinstance(data[key], basestring): + data[key] = ox.decode_html(data[key]) + elif isinstance(data[key], list): + data[key] = [ox.decode_html(e) for e in data[key]] if self.item.get('series'): data['isEpisode'] = True data['directorSort'] = [get_name_sort(n) for n in self.item.get('director', [])]