Fix podcast query

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 8 years ago
parent f57da83df1
commit bbe20e2556
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 4
      libresonic-main/src/main/java/org/libresonic/player/dao/PodcastDao.java

@ -122,7 +122,7 @@ public class PodcastDao extends AbstractDao {
public List<PodcastEpisode> getEpisodes(int channelId) { public List<PodcastEpisode> getEpisodes(int channelId) {
String sql = "select " + EPISODE_QUERY_COLUMNS + " from podcast_episode where channel_id = ? " + String sql = "select " + EPISODE_QUERY_COLUMNS + " from podcast_episode where channel_id = ? " +
"and status != ? order by publish_date desc"; "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 String sql = "select " + EPISODE_QUERY_COLUMNS
+ " from podcast_episode where status = ? and publish_date is not null " + + " from podcast_episode where status = ? and publish_date is not null " +
"order by publish_date desc limit ?"; "order by publish_date desc limit ?";
return query(sql, episodeRowMapper, PodcastStatus.COMPLETED, count); return query(sql, episodeRowMapper, PodcastStatus.COMPLETED.name(), count);
} }
/** /**

Loading…
Cancel
Save