-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
剧集分组支持正片外的其它剧集 #492
Labels
Comments
提過了 #386 |
Him188
added
s: media
子系统: 数据源基础
s: subject
子系统: 条目详情
and removed
z: duplicate
状态: 重复问题
labels
Jun 27, 2024
SP 剧集我看了一下, 允许获取比较简单, 但是要让整个 ani 全面支持比较麻烦, 你如果想要可以自己打个 patch Subject: [PATCH] SP 剧集 (WIP)
---
Index: app/shared/src/commonMain/kotlin/data/repositories/BangumiEpisodeRepository.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/app/shared/src/commonMain/kotlin/data/repositories/BangumiEpisodeRepository.kt b/app/shared/src/commonMain/kotlin/data/repositories/BangumiEpisodeRepository.kt
--- a/app/shared/src/commonMain/kotlin/data/repositories/BangumiEpisodeRepository.kt (revision a692e1dd9ab69edafae33a56251a972627d456b8)
+++ b/app/shared/src/commonMain/kotlin/data/repositories/BangumiEpisodeRepository.kt (date 1719870036924)
@@ -10,6 +10,7 @@
import me.him188.ani.datasources.api.EpisodeSort
import me.him188.ani.datasources.api.paging.PageBasedPagedSource
import me.him188.ani.datasources.api.paging.Paged
+import me.him188.ani.datasources.api.paging.filter
import me.him188.ani.datasources.bangumi.BangumiClient
import me.him188.ani.datasources.bangumi.models.BangumiEpType
import me.him188.ani.datasources.bangumi.models.BangumiEpisode
@@ -83,7 +84,6 @@
try {
client.api.getUserSubjectEpisodeCollection(
subjectId,
- episodeType = type,
offset = page * 100,
limit = 100,
).body().run {
@@ -96,6 +96,8 @@
logger.warn("Exception in getSubjectEpisodeCollection", e)
null
}
+ }.filter {
+ it.episode.type == 0 || it.episode.type == 1 // 本篇和SP
}
return episodes.results
}
|
全面支持需要考虑:
|
怎么说呢,我的建议是直接在
|
EpisodeSort 支持 SP |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
子问题:
建议内容
剧集分组支持正片外的其它剧集,举个例子
CLANNAD
:番组计划是有个23集的,但是因为不是正片,ani里找不到
番组计划条目
ani
建议:除了正片外,添加个比如
Others
的其它分组,从番组计划拉取SP + 从数据源获取的数据源定义的番组计划没有的其它分组剧集
当前 Ani 版本号
3.2.0
操作系统
Windows
The text was updated successfully, but these errors were encountered: