mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-23 00:31:02 +00:00
fix: fix the fix for the fix for MangaUpdates
null is better than a crash
This commit is contained in:
@@ -993,7 +993,7 @@ fun countDown(media: Media, view: ViewGroup) {
|
||||
fun sinceWhen(media: Media, view: ViewGroup) {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
MangaUpdates().search(media.name ?: media.nameRomaji, media.startDate)?.let {
|
||||
val latestChapter = MangaUpdates.getLatestChapter(it)
|
||||
val latestChapter = MangaUpdates.getLatestChapter(it) ?: return@let
|
||||
val timeSince = (System.currentTimeMillis() -
|
||||
(it.metadata.series.lastUpdated!!.timestamp * 1000)) / 1000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user