🐛 fixes mamafoodbistro (due to html changes)
All checks were successful
Update menicka / update-rss (push) Successful in 5m12s

This commit is contained in:
2024-10-22 10:49:36 +02:00
parent 7141a51288
commit 1853d748f3
3 changed files with 33 additions and 2 deletions

View File

@ -96,7 +96,7 @@ async function menickoMamafoodbistro(){
const dny= {};
for(const den of menicko.getElementsByTagName("h4")){
const polevka= den.nextElementSibling;
let hi= polevka.nextElementSibling;
let hi= polevka;
const hlavni= [ hi ];
while(( hi= hi.nextElementSibling ) && hi.tagName !== "H4")
hlavni.push(hi);
@ -105,6 +105,7 @@ async function menickoMamafoodbistro(){
hlavni: hlavni.map(el=> el.textContent),
});
}
echo(dny);
return { name: "MAMAFOOD", symbol: "🍎", url, dny };
}