From d1f6337c6eceaf25fb3d8a16bd7a2f0522319136 Mon Sep 17 00:00:00 2001 From: tobigr Date: Sun, 21 Dec 2025 17:08:51 +0100 Subject: [PATCH] Fix removing unwatched streams from playlist when using "remove watched" The bug is caused by a wanted but forgotten inconsistency in the database. A stream can be listed in the watch history (StreamHistoryEntity) while having no corresponding playback state (StreamStateEntity) containing the matching playback position. This is caused by the fact that NewPipe does not consider a watch time of less than five seconds to be worthy to be put into the StreamStateEntity because the video was most likely played by error. Those videos are, however, counted and stored in the watch history. --- .../local/playlist/LocalPlaylistFragment.java | 51 ++++++++----------- 1 file changed, 20 insertions(+), 31 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/playlist/LocalPlaylistFragment.java b/app/src/main/java/org/schabi/newpipe/local/playlist/LocalPlaylistFragment.java index ca6ff9502..9bbab6da0 100644 --- a/app/src/main/java/org/schabi/newpipe/local/playlist/LocalPlaylistFragment.java +++ b/app/src/main/java/org/schabi/newpipe/local/playlist/LocalPlaylistFragment.java @@ -447,39 +447,28 @@ public class LocalPlaylistFragment extends BaseLocalListFragment