Skip to content

"Remove watched" with "Remove duplicates" without closing and re-opening the playlist does not work correctly #11138

Open
@emanuele6

Description

@emanuele6

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.27.0

Steps to reproduce the bug

  1. Create a new playlist with two contents, one watched, and one not watched. Also add a duplicate for each content. You should have two copies of the watched content, and two copies of the non-watched content.
  2. Open that playlist
  3. ... -> "Remove watched" -> "OK"; the two copies of the watched content should have been removed, and only the two copies of the non-watched content should remain
  4. Without exiting, ... -> "Remove duplicates" -> "OK"

Expected behavior

What should happen is that one of the two copies of the content that is left in the playlist should be removed, leaving only one copy of the non-watched content in the playlist.

Actual behavior

What actually happens is that the contents that were previously deleted by "Remove watched" are added back, and then, from the original state of the playlist (2x watched + 2x non-watched) duplicates are removed, so you are left with one copy of the watched content, and one copy of the non-watched content.

The Remove watched/Remove duplicates change is only "commited" after you exit the playlist page.
You have to: ... -> "Remove watched" -> "OK" -> -> re-open playlist -> ... -> "Remove duplicates" -> "OK"
to remove both watched and duplicates.

Screenshots/Screen recordings

No response

Logs

No response

Affected Android/Custom ROM version

Android 13 / One UI Core 5.1

Affected device model

Samsung Galaxy A22 5G

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugdatabaseIssue and PRs related to database operationsplaylistAnything to do with playlists in the app

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions