TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.38k stars 3.05k forks source link

Strange behavior after deleting all (partially) watched videos in playlists #5169

Open vkay94 opened 3 years ago

vkay94 commented 3 years ago

Checklist

Steps to reproduce the bug

  1. Create a playlist with some (partially) watched videos and not-watched ones.
  2. Open the options menu on the top and choose "Yes and partially watched videos" (third option)

3a. Start to play one video. 3b. Open the options menu and choose "Yes" (first option)

Actual behaviour

After 3a: The video is removed from the list immediately and all items are updating very often. After 3b: The old items are appearing again (even if the optiion says "it can't be undone xD)

Expected behavior

3a: The video should not disappear/deleted from list. 3b: The videos shouldn't re-appear again (in this case there shouldn't be any difference after third option action)

Screenshots/Screen recordings

Logs

Device info

PS:

I've already looked into it a little bit and one reason could be that the remove action doesn't delete items from the database and which is the reason for 3b (after deleting only references instead of the actual items from the database, another loading from the table will load the old list).

You can assign me to this issue, @opusforlife2 , but I can already tell that there might be some structure changes.

triallax commented 3 years ago

I tried reproducing this (and succeeded), but I actually also found that leaving the app and then re-opening it actually removes the "restored videos." Also, interestingly, videos I watched and finished before are removed but not "restored."

vkay94 commented 3 years ago

Yeah, everything related to this action is pretty weird. I faced it during trying to change how local lists are updated (moving to ListAdapter using Groupie: #4739). Pretty much every fragment is working fine except this specific action :')

vkay94 commented 3 years ago

Actually, it was easier than expected xD

ShareASmile commented 1 day ago

Does this issue still occurs on latest v0.27.2 ?