Archived
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user