fix: KöPi - korrekter Pfad für shelfContents
This commit is contained in:
@@ -195,8 +195,9 @@ async function scrapeProspekte() {
|
||||
const nextData = extractNextData(body);
|
||||
if (!nextData) continue;
|
||||
|
||||
const contents = nextData.props?.pageProps?.pageInformation?.template?.content?.shelfContents?.contents
|
||||
|| nextData.props?.pageProps?.shelfContents?.contents
|
||||
const pp = nextData.props?.pageProps;
|
||||
const contents = pp?.pageInformation?.template?.content?.shelfContents?.contents
|
||||
|| pp?.shelfContents?.contents
|
||||
|| [];
|
||||
|
||||
for (const item of contents) {
|
||||
|
||||
Reference in New Issue
Block a user