Skip to content

Commit 42e37f3

Browse files
author
ChiveHao
authored
fix: some issues (#590)
* fix: ass attachment matching issue for find att by type and name like. * docs: update CHANGELOG.MD * build: upgrade version to 0.12.6 * fix: remove att and ep match
1 parent 9021847 commit 42e37f3

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.MD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

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

5+
# 0.12.6
6+
7+
## 问题修复
8+
9+
- 修复剧集附件匹配时,字幕文件匹配不到。
10+
- 修复批量移除绑定失效
11+
512
# 0.12.5
613

714
## 插件

console/src/modules/content/subject/SubjectDetails.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ const deleteBatchingAttachments = async () => {
545545
ElMessage.success(
546546
t('module.subject.details.message.operate.delete-batch-attachments.success')
547547
);
548-
window.location.reload();
548+
fetchDatas();
549549
};
550550
551551
const isEpisodeBindResource = (episode: Episode): boolean | undefined => {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.12.5
1+
version=0.12.6

server/src/main/java/run/ikaros/server/core/attachment/listener/AttachmentRelVideoSubtitleListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import run.ikaros.api.store.enums.AttachmentRelationType;
1414
import run.ikaros.server.core.attachment.event.AttachmentReferenceSaveEvent;
1515
import run.ikaros.server.core.attachment.event.EpisodeAttachmentUpdateEvent;
16-
import run.ikaros.server.infra.utils.SqlUtils;
1716
import run.ikaros.server.store.entity.AttachmentEntity;
1817
import run.ikaros.server.store.entity.AttachmentReferenceEntity;
1918
import run.ikaros.server.store.entity.AttachmentRelationEntity;
@@ -88,7 +87,7 @@ private Flux<VideoSubtitle> findAllAttachmentSubtitles(AttachmentEntity attachme
8887
String postfix = FileUtils.parseFilePostfix(attachmentName);
8988
attachmentName = attachmentName.substring(0, attachmentName.indexOf(postfix));
9089
return attachmentRepository.findAllByTypeAndNameLike(File,
91-
SqlUtils.escapeLikeSpecialChars(attachmentName) + "%")
90+
attachmentName + "%")
9291
.filter(entity -> entity.getName().endsWith("ass"))
9392
.map(entity -> VideoSubtitle.builder()
9493
.masterAttachmentId(attachmentEntity.getId())

0 commit comments

Comments
 (0)