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:
TwistedUmbrellaX 2024-04-05 22:53:25 -04:00 committed by GitHub
parent 771cdcc163
commit 9ace8e5235
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -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) ?: return@let
val latestChapter = MangaUpdates.getLatestChapter(it)
val timeSince = (System.currentTimeMillis() -
(it.metadata.series.lastUpdated!!.timestamp * 1000)) / 1000