fix: KöPi - korrekter Pfad für shelfContents
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user