Feature: add support for panoramax picturs for non-default keys (e.g. image:menu)

This commit is contained in:
Pieter Vander Vennet 2024-09-27 03:26:17 +02:00
parent 967f2f1617
commit 55cfd65f3b
5 changed files with 20 additions and 15 deletions

View file

@ -49,7 +49,7 @@ export default abstract class ImageProvider {
if(key === "panoramax"){
console.log("Inspecting", key,"against", prefixes)
}
if (!prefixes.some((prefix) => key.startsWith(prefix))) {
if (!prefixes.some((prefix) => key === prefix || key.match(new RegExp(prefix+":[0-9]+")))) {
continue
}
const values = Utils.NoEmpty(tags[key]?.split(";")?.map((v) => v.trim()) ?? [])