diff --git a/app/templates/film.html b/app/templates/film.html index c34e7d4..cfbf6ac 100644 --- a/app/templates/film.html +++ b/app/templates/film.html @@ -26,6 +26,7 @@

{{ film.data.summary|safe }}

+

{{ film.data.summary_zh|safe }}

{{film.data.director.0}}: {{ film.data.bio|safe }} diff --git a/app/video/management/commands/load_titles.py b/app/video/management/commands/load_titles.py index af2050f..bbb4104 100644 --- a/app/video/management/commands/load_titles.py +++ b/app/video/management/commands/load_titles.py @@ -29,6 +29,8 @@ class Command(BaseCommand): for key, value in item.items(): if key == 'title': f.data['title'], f.data['title_zh'] = value.split(' / ', 1) + elif key == 'summary': + f.data['summary'], f.data['summary_zh'] = value.split('

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

' in value: f.data['bio'], f.data['bio_zh'] = value.split('

', 1) diff --git a/app/video/models.py b/app/video/models.py index 2b5c5b0..3b30a8a 100644 --- a/app/video/models.py +++ b/app/video/models.py @@ -35,7 +35,7 @@ class Film(models.Model): return Text.objects.filter(data__item=self.padma_id) def duration(self): - return ox.format_timecode(self.data['duration'])[:-4] + return ox.format_duration(self.data['duration'] * 1000, verbosity=1, milliseconds=False) def color_1(self): hue = self.data['hue']