Skip to content

Commit

Permalink
[Jellystat] Correct age calculation if an item was re-downloaded afte…
Browse files Browse the repository at this point in the history
…r having been watched
  • Loading branch information
Schaka committed Nov 16, 2024
1 parent 91ddf70 commit 055a2d1
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@ data class LibraryItem(
val tags: List<String> = listOf(),
// extra files that may be provided and or copied over for leaving soon - like subtitles
val extraFiles: MutableList<String> = mutableListOf(),


)
{
val historyAge: LocalDateTime
get() = lastSeen ?: importedDate
get(): LocalDateTime {
if (lastSeen?.isAfter(importedDate) == true) {
return lastSeen!!
}
return importedDate
}

}

0 comments on commit 055a2d1

Please sign in to comment.