Small cleanups

This commit is contained in:
Pieter Vander Vennet 2021-10-18 22:34:52 +02:00
parent 3f70892d75
commit 028767afe6
3 changed files with 7 additions and 5 deletions

View file

@ -43,9 +43,7 @@ export default abstract class ImageProvider {
const seenValues = new Set<string>()
allTags.addCallbackAndRunD(tags => {
for (const key in tags) {
console.log("Does ", key,"have images?")
if (!prefixes.some(prefix => key.startsWith(prefix))) {
console.log(key,": NO", this.constructor.name, "prefixes are", prefixes)
continue
}
const values = Utils.NoEmpty(tags[key]?.split(";")?.map(v => v.trim()) ?? [])