mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Set playlist thumbnail when adding first thumbnail.
This commit is contained in:
parent
f7a5f5051a
commit
9e320c914e
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue