fix: KöPi - pageInformation.shelfContents.contents

This commit is contained in:
2026-07-08 12:38:51 +02:00
parent 15836de95f
commit 8324e0e3fe

View File

@@ -196,9 +196,9 @@ async function scrapeProspekte() {
if (!nextData) continue; if (!nextData) continue;
const pp = nextData.props?.pageProps; const pp = nextData.props?.pageProps;
const contents = pp?.pageInformation?.template?.shelfContents?.contents const contents = pp?.pageInformation?.shelfContents?.contents
|| pp?.pageInformation?.template?.shelfContents?.contents
|| pp?.pageInformation?.template?.content?.shelfContents?.contents || pp?.pageInformation?.template?.content?.shelfContents?.contents
|| pp?.shelfContents?.contents
|| []; || [];
for (const item of contents) { for (const item of contents) {