about summary refs log tree commit diff
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-04-09 19:31:50 +0200
committeruser <user@node5.net>2024-04-09 19:31:50 +0200
commit04690f386170390a0fa0c2cec7eafa212036b2cc (patch)
tree922ec99f505845c438a085eb2b299bc71772b3d0
parent7361110c911ba5c8da084cdf3d6ee66b3c152109 (diff)
fix sub folder thumbnails missing
-rw-r--r--src/article.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/article.py b/src/article.py
index 38e8cd7..1f42aec 100644
--- a/src/article.py
+++ b/src/article.py
@@ -129,7 +129,7 @@ class ArticleGenerator:
             if len(thumbnail_paths) == 0:
                 logger.warning("No thumbnail image")
             else:
-                article_args['thumbnail_path'] = '/'.join(pathlib.Path(thumbnail_paths[0]).parts[2:])
+                article_args['thumbnail_path'] = '/'.join(pathlib.Path(thumbnail_paths[0]).parts[-2:])
         else:
             # Article one file
             article_args['name'] = os.path.basename(filename)