From 7d70d5dee3838a83f9607a979f744049098ac615 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 21 Nov 2021 10:40:52 +0100 Subject: [PATCH] fix urls --- app/static/js/play.js | 4 ++-- app/templates/index.html | 2 +- app/video/models.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/static/js/play.js b/app/static/js/play.js index 1cbd416..5fc56c7 100644 --- a/app/static/js/play.js +++ b/app/static/js/play.js @@ -317,10 +317,10 @@ function renderAnnotations(config) { var title_zh = film.title.split(' / ')[1] || title_en if (config.language == 'en') { var director = film.director ? ` (${film.director[0]})` : '' - html.push(`${title_en}${director}`) + html.push(`${title_en}${director}`) } else { var director = film.director ? ` (${film.director[1]})` : '' - html.push(`${title_zh}${director}`) + html.push(`${title_zh}${director}`) } }) var films = html.length == 1 ? 'Film' : 'Films' diff --git a/app/templates/index.html b/app/templates/index.html index 20d7a6a..7abd737 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -24,7 +24,7 @@

- + diff --git a/app/video/models.py b/app/video/models.py index 322237c..fa5e9ae 100644 --- a/app/video/models.py +++ b/app/video/models.py @@ -28,7 +28,7 @@ class Film(models.Model): return self.data.get('title', self.slug) def get_absolute_url(self): - return '/' + settings.URL_PREFIX + 'film/' + self.slug + return '/' + settings.URL_PREFIX + 'video/' + self.slug def related_texts(self): from ..text.models import Text