diff --git a/app/static/css/partials/_film.scss b/app/static/css/partials/_film.scss
index 251b95f..23c6a59 100755
--- a/app/static/css/partials/_film.scss
+++ b/app/static/css/partials/_film.scss
@@ -43,8 +43,7 @@
figcaption {
img {
max-width: 100%;
- max-height: 100%;
- object-fit: contain;
+ height: 18px;
}
}
}
diff --git a/app/static/css/partials/_index.scss b/app/static/css/partials/_index.scss
index 63b35f3..24b36ba 100755
--- a/app/static/css/partials/_index.scss
+++ b/app/static/css/partials/_index.scss
@@ -84,10 +84,8 @@
background: rgba(0,0,0,0.5);
padding: 16px;
border-radius: 2px;
- .font-size-sm {
- display: flex;
- gap: 16px;
- justify-content: center;
+ .h1-en-home {
+ margin-bottom: 16px;
}
}
}
diff --git a/app/templates/base.html b/app/templates/base.html
index aa276c9..1f7cd73 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -19,9 +19,9 @@
diff --git a/app/templates/index.html b/app/templates/index.html
index dbe5c67..67b8195 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -39,12 +39,9 @@
diff --git a/app/video/management/commands/load_titles.py b/app/video/management/commands/load_titles.py
index b58ce84..b79088b 100644
--- a/app/video/management/commands/load_titles.py
+++ b/app/video/management/commands/load_titles.py
@@ -39,7 +39,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']] = {
@@ -58,12 +58,13 @@ class Command(BaseCommand):
folders[item['folder']]['items'].append(item)
for item in folders.values():
- f, c = models.Film.objects.get_or_create(pandora_url=item['url'])
+ slug = escape_slug(item['title'].split(' / ')[0])
+ f, c = models.Film.objects.get_or_create(slug=slug)
+ f.pandora_url = item['url']
for key, value in item.items():
if key != 'url':
f.data[{
}.get(key, key)] = value
if c:
f.public = True
- f.slug = escape_slug(item['title'])
f.save()