From 5318b743cc1f94685b35667ee309f069fa5e7146 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 24 Nov 2021 16:43:14 +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 5000f11..aca6960 100644 --- a/app/video/management/commands/load_titles.py +++ b/app/video/management/commands/load_titles.py @@ -51,7 +51,7 @@ class Command(BaseCommand): 'featuring': item['featuring'], 'type': item['type'], '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': [], } del item['folderdescription'] @@ -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 = ox.decode_html(item['url']) + f.pandora_url = item['url'] for key, value in item.items(): if key != 'url': f.data[{