fix: handle last manga chapter check being null

This commit is contained in:
rebelonion 2024-04-05 18:00:24 -05:00
parent 5fcbfeb3db
commit 4d28ae2e3e
2 changed files with 4 additions and 3 deletions

View file

@ -998,7 +998,7 @@ fun sinceWhen(media: Media, view: ViewGroup) {
chapter.split("-")[1].trim()
else
chapter
}?.toInt()
}?.toIntOrNull() ?: return@launch
val timeSince = (System.currentTimeMillis() -
(it.metadata.series.lastUpdated!!.timestamp * 1000)) / 1000