diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt index c0c24f85..3e6e24cb 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt @@ -733,6 +733,9 @@ class GeneratorPlayer : FullScreenPlayer() { // Don't save livestream data if ((currentMeta as? ResultEpisode)?.tvType?.isLiveStream() == true) return + // Don't save NSFW data + if ((currentMeta as? ResultEpisode)?.tvType == TvType.NSFW) return + val (position, duration) = posDur if (duration == 0L) return // idk how you achieved this, but div by zero crash