summaryrefslogtreecommitdiff
path: root/animism-align/cli/commands/site
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-11-16 17:20:30 +0100
committerJules Laplace <julescarbon@gmail.com>2020-11-16 17:20:30 +0100
commita46412486829a416fb99febaae4679c60da70803 (patch)
treec286c141c1622a12da26a00906bd7f3da88a2ef0 /animism-align/cli/commands/site
parent45d27cf690dc2a564563aebf5488e297255e5735 (diff)
fix video thumb
Diffstat (limited to 'animism-align/cli/commands/site')
-rw-r--r--animism-align/cli/commands/site/export.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/animism-align/cli/commands/site/export.py b/animism-align/cli/commands/site/export.py
index f9560c6..987ee43 100644
--- a/animism-align/cli/commands/site/export.py
+++ b/animism-align/cli/commands/site/export.py
@@ -134,6 +134,8 @@ def rewrite_db_media(db, fp_out, url_out):
# galleries - a bunch of lookups... we PROBABLY don't need image_lookup (fullsize)
elif item['type'] == 'gallery':
new_image_lookup = {}
+ if 'thumbnail' in settings:
+ settings['thumbnail'] = rewrite_upload(to_copy, settings['thumbnail'], fp_out, url_out)
for id in settings['image_order']:
id = str(id)
if id in settings['image_lookup']: