mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed SimklApi subscription
This commit is contained in:
parent
d2d2e41fb3
commit
3ab9e11350
1 changed files with 6 additions and 3 deletions
|
@ -316,9 +316,12 @@ class SimklApi(index: Int) : AccountManager(index), SyncAPI {
|
||||||
|
|
||||||
/** https://simkl.docs.apiary.io/#reference/sync/get-all-items/get-all-items-in-the-user's-watchlist */
|
/** https://simkl.docs.apiary.io/#reference/sync/get-all-items/get-all-items-in-the-user's-watchlist */
|
||||||
data class AllItemsResponse(
|
data class AllItemsResponse(
|
||||||
val shows: List<ShowMetadata>,
|
@JsonProperty("shows")
|
||||||
val anime: List<ShowMetadata>,
|
val shows: List<ShowMetadata> = emptyList(),
|
||||||
val movies: List<MovieMetadata>,
|
@JsonProperty("anime")
|
||||||
|
val anime: List<ShowMetadata> = emptyList(),
|
||||||
|
@JsonProperty("movies")
|
||||||
|
val movies: List<MovieMetadata> = emptyList(),
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
fun merge(first: AllItemsResponse?, second: AllItemsResponse?): AllItemsResponse {
|
fun merge(first: AllItemsResponse?, second: AllItemsResponse?): AllItemsResponse {
|
||||||
|
|
Loading…
Reference in a new issue