From 0049dfe84e18491e68ba28093da16a401639f4be Mon Sep 17 00:00:00 2001 From: j Date: Wed, 24 Nov 2021 16:40:49 +0100 Subject: [PATCH] fix urls --- app/video/management/commands/load_titles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/video/management/commands/load_titles.py b/app/video/management/commands/load_titles.py index 058eae6..5000f11 100644 --- a/app/video/management/commands/load_titles.py +++ b/app/video/management/commands/load_titles.py @@ -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[{