diff --git a/build.gradle b/build.gradle index f7048f8..25fc861 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ dependencies { compileOnly "io.projectreactor:reactor-core:3.5.1" compileOnly "org.springframework:spring-webflux:6.0.3" compileOnly "org.springdoc:springdoc-openapi-starter-webflux-api:2.0.2" - compileOnly files('lib/api-0.4.0.jar') + compileOnly files('lib/api-0.6.0.jar') // lombok compileOnly "org.projectlombok:lombok:$lombok" diff --git a/gradle.properties b/gradle.properties index c35e129..4431435 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group=run.ikaros.jellyfin description=A jellyfin plugin for ikaros. -version=0.4.0 \ No newline at end of file +version=0.5.0 \ No newline at end of file diff --git a/lib/api-0.4.0-sources.jar b/lib/api-0.6.0-sources.jar similarity index 57% rename from lib/api-0.4.0-sources.jar rename to lib/api-0.6.0-sources.jar index fc83560..22f1715 100644 Binary files a/lib/api-0.4.0-sources.jar and b/lib/api-0.6.0-sources.jar differ diff --git a/lib/api-0.4.0.jar b/lib/api-0.6.0.jar similarity index 61% rename from lib/api-0.4.0.jar rename to lib/api-0.6.0.jar index cddfe4e..943208d 100644 Binary files a/lib/api-0.4.0.jar and b/lib/api-0.6.0.jar differ diff --git a/src/main/java/run/ikaros/jellyfin/MediaDirInit.java b/src/main/java/run/ikaros/jellyfin/MediaDirInit.java index 7405767..2facf45 100644 --- a/src/main/java/run/ikaros/jellyfin/MediaDirInit.java +++ b/src/main/java/run/ikaros/jellyfin/MediaDirInit.java @@ -11,6 +11,7 @@ import run.ikaros.api.core.subject.*; import run.ikaros.api.infra.properties.IkarosProperties; import run.ikaros.api.infra.utils.FileUtils; +import run.ikaros.api.store.enums.EpisodeGroup; import run.ikaros.api.store.enums.FileType; import run.ikaros.api.store.enums.SubjectSyncPlatform; import run.ikaros.api.wrap.PagingWrap; @@ -202,13 +203,13 @@ private void linkEpisodeFileAndGenerateNfo(Optional bgmTvIdOp, targetEpisodeFile.getAbsolutePath(), epFileAbsolutePath, e); } // generate nfo file - Double sequence = episode.getSequence(); + Integer sequence = episode.getSequence(); if (!episodeNfoFile.exists()) { XmlUtils.generateJellyfinEpisodeNfoXml(episodeNfoFile.getAbsolutePath(), episode.getDescription(), StringUtils.hasText(episode.getNameCn()) ? episode.getNameCn() : episode.getName(), - DoubleUtils.isInt(sequence) ? "1" : "0", + EpisodeGroup.MAIN.name().equalsIgnoreCase(episode.getGroup()) ? "1" : "0", String.valueOf(DoubleUtils.castInt(sequence)), bgmTvIdOp.orElse("")); log.debug("create episode nfo file, episode:[{}], nfo file path:[{}].", episode.getName(), episodeNfoFile.getAbsolutePath()); diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index a74755e..f83122b 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -4,8 +4,8 @@ name: PluginJellyfin # plugin entry class that extends BasePlugin clazz: run.ikaros.jellyfin.JellyfinPlugin # plugin 'version' is a valid semantic version string (see semver.org). -version: 0.4.0 -requires: ">=0.4.0" +version: 0.5.0 +requires: ">=0.6.0" author: name: Ikaros OSS Team website: https://github.com/ikaros-dev