if a media was already fully loaded, don't load it again for
Since medias are cached in memory it is unnecessary to load them if they have been fully loaded once before
This commit is contained in:
@ -119,6 +119,11 @@ class AoDParser {
|
||||
return@runBlocking listOf()
|
||||
}
|
||||
|
||||
// if the episodes list is not empty it was loaded before
|
||||
if (media.episodes.isNotEmpty()) {
|
||||
return@runBlocking media.episodes
|
||||
}
|
||||
|
||||
withContext(Dispatchers.Default) {
|
||||
|
||||
val res = Jsoup.connect(baseUrl + media.link)
|
||||
|
Reference in New Issue
Block a user