From bbe20e25562b2a52f3ed90f0ee8359e30bb815f2 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Mon, 2 Jan 2017 18:25:53 -0700 Subject: [PATCH] Fix podcast query Signed-off-by: Andrew DeMaria --- .../src/main/java/org/libresonic/player/dao/PodcastDao.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libresonic-main/src/main/java/org/libresonic/player/dao/PodcastDao.java b/libresonic-main/src/main/java/org/libresonic/player/dao/PodcastDao.java index 3940435e..8d4890bc 100644 --- a/libresonic-main/src/main/java/org/libresonic/player/dao/PodcastDao.java +++ b/libresonic-main/src/main/java/org/libresonic/player/dao/PodcastDao.java @@ -122,7 +122,7 @@ public class PodcastDao extends AbstractDao { public List getEpisodes(int channelId) { String sql = "select " + EPISODE_QUERY_COLUMNS + " from podcast_episode where channel_id = ? " + "and status != ? order by publish_date desc"; - return query(sql, episodeRowMapper, channelId, PodcastStatus.DELETED); + return query(sql, episodeRowMapper, channelId, PodcastStatus.DELETED.name()); } /** @@ -135,7 +135,7 @@ public class PodcastDao extends AbstractDao { String sql = "select " + EPISODE_QUERY_COLUMNS + " from podcast_episode where status = ? and publish_date is not null " + "order by publish_date desc limit ?"; - return query(sql, episodeRowMapper, PodcastStatus.COMPLETED, count); + return query(sql, episodeRowMapper, PodcastStatus.COMPLETED.name(), count); } /**