fix: KöPi - korrekter Pfad für shelfContents

This commit is contained in:
2026-07-08 12:19:19 +02:00
parent dd0d7e77b3
commit ead13bf17a

View File

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