Skip to content

Commit

Permalink
feat: support ssa subtitle bind in video on EpisodeAttachmentUpdateEv…
Browse files Browse the repository at this point in the history
…ent listener. (#644)
  • Loading branch information
ChiveHao committed Aug 8, 2024
1 parent 299b8b2 commit d05765e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

# 0.15.2

## 新特性

- 字幕匹配事件监听,支持ssa类型的后缀名

# 0.15.1

## 问题修复
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.15.1
version=0.15.2
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ private Flux<VideoSubtitle> findAllAttachmentSubtitles(AttachmentEntity attachme
attachmentName = attachmentName.substring(0, attachmentName.indexOf(postfix));
return attachmentRepository.findAllByTypeAndNameLike(File,
attachmentName + "%")
.filter(entity -> entity.getName().endsWith("ass"))
.filter(entity ->
(entity.getName().endsWith("ass") || entity.getName().endsWith("ssa")))
.map(entity -> VideoSubtitle.builder()
.masterAttachmentId(attachmentEntity.getId())
.attachmentId(entity.getId())
Expand Down

0 comments on commit d05765e

Please sign in to comment.