fix: it was only an int for convenience (#330)
Probably would have saved a lot of elaborate attempts to fix the issue by simply going the other way.
This commit is contained in:
parent
771cdcc163
commit
9ace8e5235
3 changed files with 5 additions and 5 deletions
|
@ -43,9 +43,9 @@ class MangaUpdates {
|
|||
}
|
||||
|
||||
companion object {
|
||||
fun getLatestChapter(results: MangaUpdatesResponse.Results): Int? {
|
||||
return results.metadata.series.latestChapter
|
||||
?: results.record.chapter!!.substringAfterLast("-").trim().toIntOrNull()
|
||||
fun getLatestChapter(results: MangaUpdatesResponse.Results): String {
|
||||
return results.metadata.series.latestChapter?.toString()
|
||||
?: results.record.chapter!!.substringAfterLast("-").trim()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue