mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
light cleanup in MangaPlus file
This commit is contained in:
parent
e09ae4d347
commit
8dda29c783
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ class MangaPlus : DelegatedHttpSource() {
|
|||
return withContext(Dispatchers.IO) {
|
||||
val response = network.client.newCall(request).await()
|
||||
if (response.code != 200) throw Exception("HTTP error ${response.code}")
|
||||
val body = response.body!!.string()
|
||||
val body = response.body.string()
|
||||
val match = titleIdRegex.find(body)
|
||||
val titleId = match?.groupValues?.firstOrNull()?.substringAfterLast("/")
|
||||
?: error("Title not found")
|
||||
|
@ -66,7 +66,7 @@ class MangaPlus : DelegatedHttpSource() {
|
|||
manga.apply {
|
||||
this.title = trimmedTitle
|
||||
},
|
||||
chapters.orEmpty(),
|
||||
chapters,
|
||||
)
|
||||
} else {
|
||||
null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue