Skip to content

Commit

Permalink
upgrade version to 0.5.0 and optimize episode season config after has…
Browse files Browse the repository at this point in the history
… group.
  • Loading branch information
li-guohao committed Aug 12, 2023
1 parent d9442a1 commit 59432e1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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.jellyfin
description=A jellyfin plugin for ikaros.
version=0.4.0
version=0.5.0
Binary file not shown.
Binary file renamed lib/api-0.4.0.jar → lib/api-0.6.0.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions src/main/java/run/ikaros/jellyfin/MediaDirInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -202,13 +203,13 @@ private void linkEpisodeFileAndGenerateNfo(Optional<String> 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());
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59432e1

Please sign in to comment.