Skip to content

Commit 2571c6d

Browse files
authored
fix episodes matching files fail issue (#192)
* fix episodes matching files fail issue * update changelog for pr #192
1 parent 1e3e510 commit 2571c6d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- 通知邮件内容无法显示封面URL的问题
1616
- 邮件URL的斜杠重复,导致无法访问资源 #188
1717
- 邮件剧集文件名称不是视频类型的也进行更新了 #188
18+
- 剧集和文件批量匹配失效 #191
1819

1920
## Improvements
2021
- 优化剧集URL更新时通知的代码逻辑,目前在拉取qbittorrent已完成下载的文件任务里,创建服务端对应的文件后,当匹配到对应的剧集URL时,会给用户发送通知邮件

src/main/java/run/ikaros/server/service/SeasonServiceImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ public SeasonDTO matchingEpisodesUrlByFileIds(
111111
continue;
112112
}
113113
final String fileName = fileEntity.getName();
114-
FileType fileType = FileUtils.parseTypeByPostfix(FileUtils.parseFileName(fileName));
114+
FileType fileType = fileEntity.getType();
115115
if (fileType != FileType.VIDEO) {
116+
LOGGER.warn("skip matching, "
117+
+ "current file entity type is not video, file name={}", fileName);
116118
continue;
117119
}
118120

0 commit comments

Comments
 (0)