FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
12.36k stars 754 forks source link

[Bug]: Videos duplicate themselves when importing playlists #5038

Open Xindaris opened 2 months ago

Xindaris commented 2 months ago

Guidelines

Describe the bug

  1. Add videos to a playlist. (Using the quick bookmark feature; unsure if that's relevant)
  2. Export the playlist.
  3. Import the playlist on a different computer.
  4. Add videos to the playlist on that other computer, and export again.
  5. Import on the first computer.
  6. Some videos randomly get two "copies" in the playlist now.

Expected Behavior

Playlists should merge properly when importing, and not add another copy of a video that's already in the playlist.

Issue Labels

inconsistent behavior, usability issue

FreeTube Version

v0.20.0 Beta

Operating System Version

Windows 11

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

lbpth commented 1 month ago

It is also duplicated when I try to add video that has existed in the playlist before.

For example, I have playlist named Piano 1 - I add the video named Turkish March to Piano playlist then the number video is 1 2 - I click the button + again (still above Turkish March video), the number video count 2 in the Piano playlist So, how to avoid duplicates if I have more than 100 videos in the playlist, manual removal is not good solution.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

efb4f5ff-1298-471a-8973-3d47447115dc commented 2 weeks ago

Is this still present in v0.21.0?

Xindaris commented 1 week ago

I've still seen this happening myself, but at least the "delete duplicates" button in the playlist menu works.

PikachuEXE commented 5 hours ago

Is the duplicates always created for the same set of videos or complete random? If always the same set of videos would you mind sharing them? (Video links, ids)

No idea how to reproduce it happens randomly (I tried once myself