Skip to content

Commit

Permalink
优化条目中文名,无值则默认设置成原始名称
Browse files Browse the repository at this point in the history
  • Loading branch information
chivehao committed Oct 19, 2024
1 parent f0144b0 commit b53d02c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。

# 17.1.2

- 优化条目中文名,无值则默认设置成原始名称

# 17.1.1

- 升级核心依赖版本并修复拉取和更新时的剧集更新问题
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
group=run.ikaros.plugin
description=A bgmtv plugin for ikaros.
version=17.1.1
version=17.1.2
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ private Subject mergeBgmTvSubject(Subject subject, BgmTvSubject bgmTvSubject) {
return subject
.setType(convertType(bgmTvSubject.getType(), bgmTvSubject.getPlatform()))
.setName(bgmTvSubject.getName())
.setNameCn(bgmTvSubject.getNameCn())
.setNameCn(StringUtils.isNotBlank(bgmTvSubject.getNameCn())
? bgmTvSubject.getNameCn() : bgmTvSubject.getName())
.setInfobox(bgmTvSubject.getInfobox())
.setSummary(bgmTvSubject.getSummary())
.setNsfw(bgmTvSubject.getNsfw())
Expand Down Expand Up @@ -343,7 +344,8 @@ private Subject convert(BgmTvSubject bgmTvSubject) {
.setId(Long.valueOf(String.valueOf(bgmTvSubject.getId())))
.setType(convertType(bgmTvSubject.getType(), bgmTvSubject.getPlatform()))
.setName(bgmTvSubject.getName())
.setNameCn(bgmTvSubject.getNameCn())
.setNameCn(StringUtils.isNotBlank(bgmTvSubject.getNameCn())
? bgmTvSubject.getNameCn() : bgmTvSubject.getName())
.setInfobox(bgmTvSubject.getInfobox())
.setSummary(bgmTvSubject.getSummary())
.setNsfw(bgmTvSubject.getNsfw())
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: PluginBgmTv
# plugin entry class that extends BasePlugin
clazz: run.ikaros.plugin.bgmtv.BgmTvPlugin
# plugin 'version' is a valid semantic version string (see semver.org).
version: 17.1.1
version: 17.1.2
requires: ">=0.17.1"
author:
name: Ikaros OSS Team
Expand Down

0 comments on commit b53d02c

Please sign in to comment.