prepareNewEpisode

open fun prepareNewEpisode(episode: SEpisode, anime: SAnime)(source)

Called before inserting a new episode into database. Use it if you need to override episode fields, like the title or the episode number. Do not change anything to anime.

Parameters

episode

the episode to be added.

anime

the anime of the episode.