From 76c5fe9273716e0265dc1beef00358df15256fc4 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 6 Apr 2022 16:27:04 +0100 Subject: [PATCH] Fix rss for empty playlist. --- src/main/java/me/kavin/piped/utils/ResponseHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/kavin/piped/utils/ResponseHelper.java b/src/main/java/me/kavin/piped/utils/ResponseHelper.java index 0994670..90e5854 100644 --- a/src/main/java/me/kavin/piped/utils/ResponseHelper.java +++ b/src/main/java/me/kavin/piped/utils/ResponseHelper.java @@ -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);