fix urls
This commit is contained in:
parent
0049dfe84e
commit
5318b743cc
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ class Command(BaseCommand):
|
||||||
'featuring': item['featuring'],
|
'featuring': item['featuring'],
|
||||||
'type': item['type'],
|
'type': item['type'],
|
||||||
'description': description,
|
'description': description,
|
||||||
'url': api.url.replace('/api/', '/grid/folder==' + escape(item['folder'])),
|
'url': api.url.replace('/api/', '/grid/folder==' + escape(ox.decode_html(item['folder'])),
|
||||||
'items': [],
|
'items': [],
|
||||||
}
|
}
|
||||||
del item['folderdescription']
|
del item['folderdescription']
|
||||||
|
@ -63,7 +63,7 @@ class Command(BaseCommand):
|
||||||
for item in folders.values():
|
for item in folders.values():
|
||||||
slug = escape_slug(item['title'].split(' / ')[0])
|
slug = escape_slug(item['title'].split(' / ')[0])
|
||||||
f, c = models.Film.objects.get_or_create(slug=slug)
|
f, c = models.Film.objects.get_or_create(slug=slug)
|
||||||
f.pandora_url = ox.decode_html(item['url'])
|
f.pandora_url = item['url']
|
||||||
for key, value in item.items():
|
for key, value in item.items():
|
||||||
if key != 'url':
|
if key != 'url':
|
||||||
f.data[{
|
f.data[{
|
||||||
|
|
Loading…
Reference in a new issue