diff --git a/app/video/management/commands/load_titles.py b/app/video/management/commands/load_titles.py index bc16a5c..576c733 100644 --- a/app/video/management/commands/load_titles.py +++ b/app/video/management/commands/load_titles.py @@ -28,7 +28,11 @@ class Command(BaseCommand): f, c = models.Film.objects.get_or_create(padma_id=item['id']) for key, value in item.items(): if key == 'title': - f.data['title'], f.data['title_zh'] = value.split(' / ', 1) + if ' / ' in value: + f.data['title'], f.data['title_zh'] = value.split(' / ', 1) + else: + f.data['title'] = value + f.data['title_zh'] = '' elif key == 'summary': f.data['summary'], f.data['summary_zh'] = value.split('

', 1) elif key == 'sourcedescription':