mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix startDate
This commit is contained in:
parent
5d02ac1c30
commit
cae8d8604c
1 changed files with 3 additions and 3 deletions
|
@ -449,10 +449,10 @@ class MALApi(index: Int) : AccountManager(index), SyncAPI {
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
plot = this.node.synopsis,
|
plot = this.node.synopsis,
|
||||||
releaseDate = if (this.node.start_date == null) null else try {Date.from(
|
releaseDate = if (this.node.startDate == null) null else try {Date.from(
|
||||||
Instant.from(
|
Instant.from(
|
||||||
DateTimeFormatter.ofPattern(if (this.node.start_date.length == 4) "yyyy" else if (this.node.start_date.length == 7) "yyyy-MM" else "yyyy-MM-dd")
|
DateTimeFormatter.ofPattern(if (this.node.startDate.length == 4) "yyyy" else if (this.node.startDate.length == 7) "yyyy-MM" else "yyyy-MM-dd")
|
||||||
.parse(this.node.start_date)
|
.parse(this.node.startDate)
|
||||||
)
|
)
|
||||||
)} catch (_: RuntimeException) {null}
|
)} catch (_: RuntimeException) {null}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue