mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix cloning of playlist with duplicate videos.
This commit is contained in:
parent
5fd274bc87
commit
30a7b43c5e
1 changed files with 1 additions and 1 deletions
|
@ -1390,7 +1390,7 @@ public class ResponseHelper {
|
||||||
|
|
||||||
var channel = channelMap.get(channelId);
|
var channel = channelMap.get(channelId);
|
||||||
|
|
||||||
playlist.getVideos().add(videoMap.getOrDefault(videoId, new PlaylistVideo(videoId, video.getName(), video.getThumbnailUrl(), video.getDuration(), channel)));
|
playlist.getVideos().add(videoMap.computeIfAbsent(videoId, (key) -> new PlaylistVideo(videoId, video.getName(), video.getThumbnailUrl(), video.getDuration(), channel)));
|
||||||
});
|
});
|
||||||
|
|
||||||
var tr = s.beginTransaction();
|
var tr = s.beginTransaction();
|
||||||
|
|
Loading…
Reference in a new issue