dont show nsfw in recently watched

This commit is contained in:
Cloudburst 2022-08-22 14:57:47 +02:00
parent 7907e761ab
commit 8862b103a7
1 changed files with 3 additions and 0 deletions

View File

@ -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