mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-14 06:10:29 +05:30
Set playlist thumbnail when adding first thumbnail.
This commit is contained in:
parent
f7a5f5051a
commit
9e320c914e
@ -1144,6 +1144,9 @@ public class ResponseHelper {
|
|||||||
s.getTransaction().begin();
|
s.getTransaction().begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (playlist.getVideos().isEmpty())
|
||||||
|
playlist.setThumbnail(video.getThumbnail());
|
||||||
|
|
||||||
playlist.getVideos().add(video);
|
playlist.getVideos().add(video);
|
||||||
|
|
||||||
if (!s.getTransaction().isActive())
|
if (!s.getTransaction().isActive())
|
||||||
|
Loading…
Reference in New Issue
Block a user