From dcbe433f4b01deee580acdb998ef8ec7ed613752 Mon Sep 17 00:00:00 2001 From: wushuo Date: Thu, 2 Jan 2025 18:01:48 +0800 Subject: [PATCH] 1.1.216 --- UPDATE.md | 2 +- pom.xml | 2 +- src/main/java/ani/rss/util/TmdbUtil.java | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/UPDATE.md b/UPDATE.md index af2078b2..3b3c814d 100644 --- a/UPDATE.md +++ b/UPDATE.md @@ -1 +1 @@ -优化备用RSS通知 +修复TMDB获取失败时无法添加订阅的问题 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 9ccb39af..f7ca9ed0 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ ani.rss ani-rss - 1.1.215 + 1.1.216 11 diff --git a/src/main/java/ani/rss/util/TmdbUtil.java b/src/main/java/ani/rss/util/TmdbUtil.java index b217e85f..c44e6354 100644 --- a/src/main/java/ani/rss/util/TmdbUtil.java +++ b/src/main/java/ani/rss/util/TmdbUtil.java @@ -16,6 +16,7 @@ import java.util.Date; import java.util.List; +import java.util.Objects; import java.util.Optional; @Slf4j @@ -54,6 +55,10 @@ public synchronized static String getName(String name, String type) { return ""; } + if (Objects.isNull(tmdb)) { + return ""; + } + String themoviedbName = tmdb.getName(); if (StrUtil.isBlank(themoviedbName)) { return "";