From 6b6d6ffc1cce25366cdddda60e9beb01499b5237 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 f5562549c..5d6d12fe3 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 @@ -448,39 +448,28 @@ public class LocalPlaylistFragment extends BaseLocalListFragment