timeline: stack RAW with additional file extension (fix #927)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/953/head
Varun Patil 2023-11-22 12:39:36 -08:00
parent e55f0d6343
commit f148b45fc6
1 changed files with 7 additions and 0 deletions

View File

@ -1095,6 +1095,13 @@ export default defineComponent({
const basename = utils.removeExtension(photo.basename ?? String()); const basename = utils.removeExtension(photo.basename ?? String());
const files = toStack.get(basename) ?? []; const files = toStack.get(basename) ?? [];
// Also allow *one* more extension in the filename
// https://github.com/pulsejet/memories/issues/927
if (basename.includes('.')) {
const subname = utils.removeExtension(basename);
files.push(...(toStack.get(subname) ?? []));
}
if (!files.length) continue; if (!files.length) continue;
// Stack on top of this file // Stack on top of this file