Adding media to a playlist that already existed is leading to duplication. Playing duplicated media is leading to unexpected behavior.
mentioned in #1799 (closed)
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.
Displays message based on addition outcome:
VideoLAN code repository instance