mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-06 05:21:09 +02:00
Merge pull request #329 from TeamPiped/playlist-clone-duplicate
Playlist clone duplicate
This commit is contained in:
commit
d4537c4192
@ -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…
x
Reference in New Issue
Block a user