Skip to content

feat(Sync): Scrobble Support + SIMKL Scrobble#3043

Open
KingLucius wants to merge 4 commits into
recloudstream:masterfrom
KingLucius:ScrobbleSupport
Open

feat(Sync): Scrobble Support + SIMKL Scrobble#3043
KingLucius wants to merge 4 commits into
recloudstream:masterfrom
KingLucius:ScrobbleSupport

Conversation

@KingLucius

Copy link
Copy Markdown
Contributor

Changes:

  • Scrobble SyncApi support
  • Simkl scrobble

Reason:
That would make sync so much easier, instead of manual sync, we just tell simkl server the event and the progress and it updates the watching now and mark it as watched after 80% progress

Screenshot:
Screenshot_20260710_110534_com_android_chrome_ChromeTabbedActivity_edit_505619097329775


@JsonInclude(JsonInclude.Include.NON_EMPTY)
data class ScrobbleEpisode(
@JsonProperty("season") val season: Int,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make these serializable with a @Serializable annotation and corresponding @SerialName annotations:

@JsonInclude(JsonInclude.Include.NON_EMPTY)
@OptIn(ExperimentalSerializationApi::class) // KeepGeneratedSerializer is an experimental annotation for now
@Serializable(with = ScrobbleEpisode.Serializer::class)
@KeepGeneratedSerializer
data class ScrobbleEpisode(
    @JsonProperty("season") @SerialName("season") val season: Int,
    @JsonProperty("episode") @SerialName("episode") val episode: Int,
) {
    object Serializer :
        NonEmptySerializer<ScrobbleEpisode>(ScrobbleEpisode.generatedSerializer())
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants