Skip to content

Commit

Permalink
优化tmdb标题获取
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Dec 15, 2024
1 parent 9f5cac7 commit 88843f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ani/rss/util/TmdbUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public synchronized static String getName(String name, String type) {
String id = jsonObject.get("id").getAsString();
String title = Optional.of(jsonObject)
.map(o -> o.get("name"))
.orElse(jsonObject.get("original_title")).getAsString();
.orElse(jsonObject.get("title")).getAsString();

String date = Optional.of(jsonObject)
.map(o -> o.get("first_air_date"))
Expand Down

0 comments on commit 88843f8

Please sign in to comment.