Skip to content

Commit

Permalink
优化RSS选择
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Oct 30, 2024
1 parent c8da099 commit 30843b4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
4 changes: 1 addition & 3 deletions UPDATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
优化剧场版

修复剧场版通知的问题
优化RSS选择
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ani.rss</groupId>
<artifactId>ani-rss</artifactId>
<version>1.1.166</version>
<version>1.1.167</version>

<properties>
<maven.compiler.source>11</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ani/rss/util/MikanUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static Mikan list(String text, Mikan.Season season) {
.collect(Collectors.toSet());
String url = getMikanHost();
if (StrUtil.isNotBlank(text)) {
url = url + "/Home/Search?searchstr=" + URLUtil.encode(text, StandardCharsets.UTF_8);
url = url + "/Home/Search?searchstr=" + URLUtil.encodeBlank(text);
} else {
Integer year = season.getYear();
String seasonStr = season.getSeason();
Expand Down
1 change: 1 addition & 0 deletions ui/src/home/Ani.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<BackRss ref="backRss" :ani="props.ani"/>
<Mikan ref="mikanRef" @add="args => {
ani.subgroup = args.group
ani.match = args.match
ani.url = args.url
}"/>
<div style="height: 500px;">
Expand Down
2 changes: 1 addition & 1 deletion ui/src/home/BackRss.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
backRss[editIndex].url = args.url
backRss[editIndex].label = args.group
editIndex = -1
}"/>
}" match="false"/>
<el-dialog v-model="dialogVisible" title="备用订阅" center v-if="dialogVisible">
<div style="display: flex;width: 100%;">
<div>
Expand Down
6 changes: 4 additions & 2 deletions ui/src/home/Mikan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,10 @@ let add = (v) => {
matchList.value = JSON.parse(JSON.stringify(v.matchList))
let all = []
addAni.value.url = v.url
addAni.value.group = v.group
addAni.value.match = all
if (matchList.value.length === 1) {
if (matchList.value.length === 1 || props.match) {
dialogVisible.value = false
emit('add', addAni.value)
return
Expand All @@ -269,7 +270,8 @@ let open = (url) => {
defineExpose({show})
const emit = defineEmits(['add'])
let props = defineProps(['match'])
let emit = defineEmits(['add'])
</script>

Expand Down

0 comments on commit 30843b4

Please sign in to comment.