fixed a possible issue with the mensa parser
This commit is contained in:
parent
75a457312d
commit
ffeb09a37f
@ -26,16 +26,12 @@ import org.jsoup.Jsoup
|
||||
import java.util.*
|
||||
|
||||
class MensaParser {
|
||||
private var mealList = ArrayList<Meal>()
|
||||
|
||||
init {
|
||||
// do something
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the mensa menu for the whole week
|
||||
*/
|
||||
fun getMensaMenu(): ArrayList<Meal> {
|
||||
val mealList = ArrayList<Meal>()
|
||||
val menuHTML = Jsoup.connect("https://www.swfr.de/de/essen-trinken/speiseplaene/mensa-offenburg/").get()
|
||||
|
||||
menuHTML.select("#speiseplan-tabs").select("div.tab-content").select("div.menu-tagesplan").forEachIndexed { _, element ->
|
||||
|
Loading…
Reference in New Issue
Block a user