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