Fix rss for empty playlist.

This commit is contained in:
Kavin 2022-04-06 16:27:04 +01:00
parent 9e320c914e
commit 76c5fe9273
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -391,9 +391,9 @@ public class ResponseHelper {
var cb = s.getCriteriaBuilder();
var cq = cb.createQuery(me.kavin.piped.utils.obj.db.Playlist.class);
var root = cq.from(me.kavin.piped.utils.obj.db.Playlist.class);
root.fetch("videos")
root.fetch("videos", JoinType.LEFT)
.fetch("channel", JoinType.LEFT);
root.fetch("owner", JoinType.LEFT);
root.fetch("owner", JoinType.INNER);
cq.select(root);
cq.where(cb.equal(root.get("playlist_id"), UUID.fromString(playlistId)));
var query = s.createQuery(cq);