TUM-Dev / eat-api

Simple static API for some (student) food places in Munich.
https://eat-api.tum.sexy
MIT License
21 stars 14 forks source link

Menu fetching doesn't work #251

Closed Friendly-Banana closed 3 months ago

Friendly-Banana commented 3 months ago

https://www.studierendenwerk-muenchen-oberbayern.de/mensa/speiseplan/speiseplan_422_-de.html shows dishes, but the API returns none.

atticus-sullivan commented 3 months ago

Yes, studierendenwerk changed some things on their website (eg including a note about water consumption and CO2 emissions for the dishes) and thereby the class js-schedule-dish-description doesn't seem to be available anymore (here's how I fixed this for me).

For the eat-api the relevant line should be this I think (I don't really know the codebase, so I didn't implement or even test this for the eat-api).

Apart from using the new class everything should work like before (if you don't want to parse the new information provided on the studierendenwerk website).