Skip to content

Fixed: Playlist Duplicate media items bug

Mohamed Sliem requested to merge Sliem/vlc-ios:FixPlaylistBug into master

Objective

  • Fixing playlist duplicated media bug.
  • Adding status label indicates adding media process notes to the playlist.

Problem

Adding media to a playlist that already existed is leading to duplication. Playing duplicated media is leading to unexpected behavior.

mentioned in #1799

Solution

To prevent duplication and ensure smooth UI, implemented a pre-addition check.

This check verifies if the selected media item already exists within the playlist before adding it. If the item is found, it will not be added, eliminating duplicate entries.

Additional Enhancements

 Displays message based on addition outcome:

  • Number of non duplicated or new media added
  • No media added to the playlist (if all media already existed)

Result

Merge request reports

Loading