fix urls
This commit is contained in:
parent
1770ac7156
commit
0049dfe84e
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class Command(BaseCommand):
|
|||
continue
|
||||
if isinstance(item['folder'], list):
|
||||
print(item['id'])
|
||||
|
||||
|
||||
if item['folder'] not in folders:
|
||||
description = item['folderdescription'] or item['summary']
|
||||
folders[item['folder']] = {
|
||||
|
@ -63,7 +63,7 @@ class Command(BaseCommand):
|
|||
for item in folders.values():
|
||||
slug = escape_slug(item['title'].split(' / ')[0])
|
||||
f, c = models.Film.objects.get_or_create(slug=slug)
|
||||
f.pandora_url = item['url']
|
||||
f.pandora_url = ox.decode_html(item['url'])
|
||||
for key, value in item.items():
|
||||
if key != 'url':
|
||||
f.data[{
|
||||
|
|
Loading…
Reference in a new issue