Set playlist thumbnail when adding first thumbnail.

This commit is contained in:
Kavin 2022-04-06 16:15:44 +01:00
parent f7a5f5051a
commit 9e320c914e
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 3 additions and 0 deletions

View File

@ -1144,6 +1144,9 @@ public class ResponseHelper {
s.getTransaction().begin();
}
if (playlist.getVideos().isEmpty())
playlist.setThumbnail(video.getThumbnail());
playlist.getVideos().add(video);
if (!s.getTransaction().isActive())