🧩
Seanime Extensions
🧩
Seanime Extensions
  • Seanime
    • Getting started
    • Core APIs
    • Changelog
  • Content Providers
    • Write, test, share
    • Anime torrent provider
    • Manga provider
    • Online streaming provider
  • Plugins
    • Introduction
    • Write, test, share
    • APIs
      • Helpers
      • Store
      • Storage
      • Database
      • AniList
      • System
        • Permissions
        • OS
        • Filepath
        • Commands
        • Buffers, I/O
        • MIME
    • UI
      • Basics
      • User Interface
        • Tray
        • Toast
        • Screen
        • Command Palette
        • Action
        • DOM
      • Anime/Library
        • Anime
        • Playback
        • Continuity
        • Auto Downloader
        • Auto Scanner
        • Filler Manager
        • External Player Link
      • Downloading
        • Downloader
        • Torrent Client
      • Other
        • Manga
        • Discord
        • MPV
    • Hooks
    • Example
  • Frequently asked
    • Feature requests
Powered by GitBook
On this page
  • Core Methods
  • getWatchHistoryItem
  • updateWatchHistoryItem
  • getWatchHistory
  • deleteWatchHistoryItem
  1. Plugins
  2. UI
  3. Anime/Library

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)
PreviousPlaybackNextAuto Downloader

Last updated 20 days ago