Continuity

Interact with Seanime's watch history system that powers playback resuming.

Core Methods

getWatchHistoryItem

Gets the last recorded progress for an anime

const item = ctx.continuity.getWatchHistoryItem(21)

updateWatchHistoryItem

Update the last recorded progress for an anime

Parameters:

  • opts: Object containing:

    • currentTime: Number - Last recorded progress in seconds

    • duration : Number - Total duration in seconds

    • mediaId : Number

    • episodeNumber : Number

    • filepath? : String

    • kind : "onlinestream" | "mediastream" | "external_player"

getWatchHistory

Gets all last recorded progress items

const items = ctx.continuity.getWatchHistory()

deleteWatchHistoryItem

Parameters:

  • mediaId : Number

ctx.continuity.deleteWatchHistoryItem(21)

Last updated