StudIPParser.kt now stops fetching items that don't provide full information, and tells the user how many items were skipped

This commit is contained in:
denizk0461
2023-05-03 11:10:34 +02:00
parent 7f0659d094
commit ae8db7ce48
6 changed files with 68 additions and 25 deletions
@@ -23,9 +23,9 @@ class FetcherViewModel(app: Application) : AppViewModel(app) {
* @param html source code of the schedule website
*/
@Throws(IOException::class)
fun parse(html: String) {
doAsync {
fun parse(html: String): Int =
returnBlocking {
parser.parse(html)
}
}
}