diff options
| author | user <user@node5.net> | 2024-04-09 19:31:50 +0200 |
|---|---|---|
| committer | user <user@node5.net> | 2024-04-09 19:31:50 +0200 |
| commit | 04690f386170390a0fa0c2cec7eafa212036b2cc (patch) | |
| tree | 922ec99f505845c438a085eb2b299bc71772b3d0 /src | |
| parent | 7361110c911ba5c8da084cdf3d6ee66b3c152109 (diff) | |
fix sub folder thumbnails missing
Diffstat (limited to 'src')
| -rw-r--r-- | src/article.py | 2 |
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) |
