From 54321fa061c12ea8435316ee107ecb1171e25be3 Mon Sep 17 00:00:00 2001 From: LuckyPuppy514 <122154133@qq.com> Date: Tue, 23 May 2023 01:16:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lckp/jproxy/filter/IndexerFilter.java | 4 ++-- .../lckp/jproxy/service/impl/RadarrIndexerServiceImpl.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java b/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java index 59903e1..69a660f 100644 --- a/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java +++ b/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java @@ -69,8 +69,8 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha if (index == size - 1) { if (StringUtils.isNotBlank(indexerRequest.getSeasonNumber()) && offsetList.get(index - 1) < indexerRequest.getLimit()) { - indexerRequest.setSeasonNumber(null); - indexerRequest.setEpisodeNumber(null); + indexerRequest.setSeasonNumber(""); + indexerRequest.setEpisodeNumber(""); } else { break; } diff --git a/src/main/java/com/lckp/jproxy/service/impl/RadarrIndexerServiceImpl.java b/src/main/java/com/lckp/jproxy/service/impl/RadarrIndexerServiceImpl.java index 66c1fb6..9ef1bc6 100644 --- a/src/main/java/com/lckp/jproxy/service/impl/RadarrIndexerServiceImpl.java +++ b/src/main/java/com/lckp/jproxy/service/impl/RadarrIndexerServiceImpl.java @@ -90,6 +90,7 @@ public List getSearchTitle(String title) { .eq(TableField.TMDB_ID, radarrTitle.getTmdbId()).eq(TableField.SNO, 0).list(); if (!radarrTitleList.isEmpty()) { searchTitleList.add(radarrTitleList.get(0).getCleanTitle()); + searchTitleList.add(radarrTitleList.get(0).getCleanTitle()); } } return searchTitleList;