« get me outta code hell

thumbs: getExpectedImagePaths: wiki wallpaper parts - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-05-27 19:06:38 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-05-27 19:06:38 -0300
commitcbde2a5204f82e63c7c86833fb8fc24a74085d9c (patch)
treedf1b1294e07c34698f40abd198edcf447d03d473
parent8afbf95576a7a108d8e5508cc0cd7eff9e48352e (diff)
thumbs: getExpectedImagePaths: wiki wallpaper parts
-rw-r--r--src/gen-thumbs.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gen-thumbs.js b/src/gen-thumbs.js
index 97cf74a9..413829b2 100644
--- a/src/gen-thumbs.js
+++ b/src/gen-thumbs.js
@@ -1251,6 +1251,11 @@ export function getExpectedImagePaths(mediaPath, {urls, wikiData}) {
         .filter(part => part.asset)
         .map(part =>
           fromRoot.to('media.albumWallpaperPart', album.directory, part.asset))),
+
+    wikiData.wikiInfo.wikiWallpaperParts
+      .filter(part => part.asset)
+      .map(part =>
+        fromRoot.to('media.path', part.asset)),
   ].flat();
 
   sortByName(paths, {getName: path => path});