⚡ 🐛 fixes mamafoodbistro (due to html changes)
All checks were successful
Update menicka / update-rss (push) Successful in 5m12s
All checks were successful
Update menicka / update-rss (push) Successful in 5m12s
This commit is contained in:
3
cli.mjs
3
cli.mjs
@ -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 };
|
||||
}
|
||||
|
Reference in New Issue
Block a user