mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Just a few minor bugs fixes introduced in recent PRs
This commit is contained in:
parent
9e7742034a
commit
e0d50baf15
4 changed files with 7 additions and 4 deletions
|
|
@ -62,12 +62,12 @@ class DatePlayedService
|
|||
).content.items
|
||||
.firstOrNull()
|
||||
?.userData
|
||||
?.lastPlayedDate
|
||||
if (premiereDate != null && premiereDate.isAfter(result)) {
|
||||
?.lastPlayedDate ?: LocalDateTime.MIN
|
||||
if (premiereDate != null && result.isBefore(premiereDate)) {
|
||||
premiereDate
|
||||
} else {
|
||||
result
|
||||
} ?: LocalDateTime.MIN
|
||||
}
|
||||
} catch (ex: InvalidStatusException) {
|
||||
Timber.w(
|
||||
"Error fetching series=%s, item=%s: %s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue