Commit f1b4820d94

f1b4820d94540327bbcad0f21184d9232ef307ae

parent: a332423aa0

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-10-24 05:41 UTC

seanime

Layout: unified · split

docs/.vitepress/configs/constants.ts +10 −1
@@ -280,6 +280,14 @@ export const homeCards: HomeCard[] = [
280280 link: '/ext/mangayomi',
281281 section: 'Extensions'
282282 },
283 {
284 id: 'ext-seanime',
285 icon: ':lucide-puzzle:',
286 title: 'Seanime',
287 details: 'Anime, Manga, Torrents & Plugins',
288 link: '/ext/seanime',
289 section: 'Extensions'
290 },
283291 {
284292 id: 'glossary-general',
285293 icon: ':lucide-book-open:',
@@ -577,7 +585,8 @@ export const sidebar: DefaultTheme.Sidebar = [
577585 collapsed: true,
578586 items: [
579587 { text: 'Hayase', link: '/ext/hayase' },
580 { text: 'Mangayomi', link: '/ext/mangayomi' }
588 { text: 'Mangayomi', link: '/ext/mangayomi' },
589 { text: 'Seanime', link: '/ext/seanime' }
581590 ]
582591 }
583592 ]
docs/.vitepress/theme/components/extrepo/ExtensionRepos.vue +2 −2
@@ -9,7 +9,7 @@ import RepoRow from './RepoRow.vue'
99import SettingsMenu from './SettingsMenu.vue'
1010import SiteGrid from './SiteGrid.vue'
1111import type { MatchedSite, RatingFilter, Repo } from './types'
12import { indexSites, useRepoFilter } from './useRepoFilter'
12import { dedupeSites, indexSites, useRepoFilter } from './useRepoFilter'
1313import { provideRepoStore } from './useRepoStore'
1414import { provideTooltip } from './useTooltip'
1515
@@ -203,7 +203,7 @@ const totalExtensions = computed(() => {
203203 const visible = showBroken.value
204204 ? allSites.value
205205 : allSites.value.filter(site => !site.isBroken)
206 return groupSites(visible).length
206 return groupSites(dedupeSites(visible)).length
207207})
208208
209209const searchPlaceholder = computed(() => {
docs/.vitepress/theme/components/extrepo/SiteCell.vue +8 −5
@@ -1,4 +1,5 @@
11<script setup lang="ts">
2import { computed } from 'vue'
23import { langFlagClass, ratingIcon, ratingTitle } from './helpers'
34import { hasSiteCopyButton } from './install'
45import LazyIcon from './LazyIcon.vue'
@@ -14,8 +15,10 @@ const props = defineProps<{
1415 scheme?: string
1516}>()
1617
18const copyTarget = computed(() => props.site.copyUrl ?? props.site.installUrl)
19
1720async function copyInstallUrl() {
18 const value = props.site.installUrl
21 const value = copyTarget.value
1922 if (!value) return
2023 await copy(value, value)
2124}
@@ -55,8 +58,8 @@ async function copyInstallUrl() {
5558 @mouseleave="hideTooltip"
5659 />
5760 </div>
58 <span v-if="site.repoName" class="ext-site-repo">{{
59 site.repoName
61 <span v-if="site.author ?? site.repoName" class="ext-site-repo">{{
62 site.author ?? site.repoName
6063 }}</span>
6164 </component>
6265 <a
@@ -70,7 +73,7 @@ async function copyInstallUrl() {
7073 <span class="i-lucide:download" />
7174 </a>
7275 <button
73 v-if="site.installUrl && hasSiteCopyButton(scheme ?? '')"
76 v-if="copyTarget && hasSiteCopyButton(scheme ?? '')"
7477 class="ext-site-copy-btn"
7578 type="button"
7679 :aria-label="`Copy ${site.name} url`"
@@ -78,7 +81,7 @@ async function copyInstallUrl() {
7881 @mouseleave="hideTooltip"
7982 @click="copyInstallUrl"
8083 >
81 <span v-if="copiedKey === site.installUrl" class="i-lucide:check" />
84 <span v-if="copiedKey === copyTarget" class="i-lucide:check" />
8285 <span v-else class="i-lucide:copy" />
8386 </button>
8487 </div>
docs/.vitepress/theme/components/extrepo/SiteGroupCell.vue +2 −2
@@ -75,8 +75,8 @@ const groupName = computed(() => {
7575 @mouseleave="hideTooltip"
7676 />
7777 </div>
78 <span v-if="primary.repoName" class="ext-site-repo">{{
79 primary.repoName
78 <span v-if="primary.author ?? primary.repoName" class="ext-site-repo">{{
79 primary.author ?? primary.repoName
8080 }}</span>
8181 </button>
8282</template>
docs/.vitepress/theme/components/extrepo/groupSites.ts +6 −3
@@ -10,10 +10,13 @@ export function groupSites(
1010): SiteGroup[] {
1111 const map = new Map<string, SiteGroup>()
1212 for (const site of sites) {
13 const key = site.url
14 ? 'url::' + (site.repoName ?? '') + '::' + site.url
13 const author = site.author ?? ''
14 const key = site.copyUrl
15 ? 'copy::' + (site.repoName ?? '') + '::' + site.copyUrl
16 : site.url
17 ? 'url::' + (site.repoName ?? '') + '::' + author + '::' + site.url
1518 : 'nourl::' + site.name + '::' + site.lang + '::' +
16 (site.repoName ?? '') + '::' + site.icon
19 (site.repoName ?? '') + '::' + author + '::' + site.icon
1720 let group = map.get(key)
1821 if (!group) {
1922 group = { key, sites: [] }
docs/.vitepress/theme/components/extrepo/helpers.ts +13 −3
@@ -74,12 +74,22 @@ export function ratingTitle(rating: Rating): string {
7474 return 'Mixed'
7575}
7676
77const CONTENT_TYPE_LABELS: Record<string, string> = {
78 plugin: 'Plugin',
79 'custom-source': 'Custom Source',
80 'onlinestream-provider': 'Online Streaming',
81 'manga-provider': 'Manga Provider',
82 'anime-torrent-provider': 'Anime Torrent'
83}
84
7785export function contentTypeLabel(type: string): string {
7886 let hit = contentTypeCache.get(type)
7987 if (hit === undefined) {
80 hit = type.toLowerCase().split('_').map(word =>
81 word.charAt(0).toUpperCase() + word.slice(1)
82 ).join(' ')
88 const mapped = CONTENT_TYPE_LABELS[type.toLowerCase()]
89 hit = mapped ??
90 type.toLowerCase().split('_').map(word =>
91 word.charAt(0).toUpperCase() + word.slice(1)
92 ).join(' ')
8393 contentTypeCache.set(type, hit)
8494 }
8595 return hit
docs/.vitepress/theme/components/extrepo/install.ts +4
@@ -49,6 +49,9 @@ const INSTALL_URL_BUILDERS: Record<
4949// Apps with no deep-link install scheme;
5050const MANUAL_ONLY_SCHEMES = new Set(['manual', 'shosetsu'])
5151
52// Schemes that keep the copy actions but never show an install link.
53const NO_INSTALL_SCHEMES = new Set(['seanime'])
54
5255// Schemes with no install or copy action
5356const BROWSE_ONLY_SCHEMES = new Set(['kotatsu', 'echo'])
5457
@@ -74,6 +77,7 @@ export function installHref(
7477 repo: Repo,
7578 opts?: InstallOpts
7679): string | null {
80 if (NO_INSTALL_SCHEMES.has(scheme)) return null
7781 const build = INSTALL_URL_BUILDERS[scheme]
7882 if (build) return build(repo, opts)
7983 if (MANUAL_ONLY_SCHEMES.has(scheme) || BROWSE_ONLY_SCHEMES.has(scheme)) {
docs/.vitepress/theme/components/extrepo/types.ts +2
@@ -27,6 +27,8 @@ export interface RepoSite {
2727 contentType?: string
2828 isBroken?: boolean
2929 installUrl?: string
30 author?: string
31 copyUrl?: string
3032}
3133
3234export interface MatchedSite extends RepoSite {
docs/.vitepress/theme/components/extrepo/useRepoFilter.ts +16 −1
@@ -21,6 +21,20 @@ export function indexSites(sites: MatchedSite[]): IndexedSite[] {
2121 }))
2222}
2323
24// dedupes seanime marketplace
25export function dedupeSites<T extends MatchedSite>(sites: T[]): T[] {
26 const seen = new Set<string>()
27 const out: T[] = []
28 for (const site of sites) {
29 if (site.copyUrl) {
30 if (seen.has(site.copyUrl)) continue
31 seen.add(site.copyUrl)
32 }
33 out.push(site)
34 }
35 return out
36}
37
2438export function useRepoFilter(
2539 allSites: ComputedRef<IndexedSite[]>,
2640 state: RepoFilterState
@@ -69,7 +83,7 @@ export function useRepoFilter(
6983 const rating = state.ratingFilter.value
7084 const ctype = state.contentTypeFilter.value
7185 const showBroken = state.showBroken.value
72 return allSites.value.filter((site) => {
86 const filtered = allSites.value.filter((site) => {
7387 if (site.isBroken && !showBroken) return false
7488 if (q && !site.hay.includes(q)) return false
7589 if (lang && site.lang !== lang) return false
@@ -77,6 +91,7 @@ export function useRepoFilter(
7791 if (ctype && site.contentType !== ctype) return false
7892 return true
7993 })
94 return dedupeSites(filtered)
8095 })
8196
8297 return { facets, isFiltering, filteredSites }
docs/ext/extensionRepos/parsers.ts +55 −1
@@ -198,6 +198,24 @@ export interface EchoAuthorRepo {
198198 indexUrl: string
199199}
200200
201interface SeanimeMarketplaceEntry {
202 id?: string
203 name: string
204 description?: string
205 author?: string
206 version?: string
207 type?: string
208 language?: string
209 lang?: string
210 icon?: string
211 manifestURI: string
212 payloadURI?: string
213 website?: string
214 workingTag?: boolean
215 brokenTag?: boolean
216 deprecatedTag?: boolean
217}
218
201219const FETCH_TIMEOUT_MS = 15000
202220const FETCH_CONCURRENCY = 10
203221
@@ -817,6 +835,40 @@ function toRepoDataMihonNew(index: MihonIndex): RepoSite[] {
817835 return sortSites(sites)
818836}
819837
838function toRepoDataSeanime(entries: SeanimeMarketplaceEntry[]): RepoSite[] {
839 const seen = new Set<string>()
840 const sites: RepoSite[] = []
841 for (const ext of entries) {
842 if (!ext?.name || !ext?.manifestURI) continue
843 if (seen.has(ext.manifestURI)) continue
844 seen.add(ext.manifestURI)
845 const author = ext.author?.trim()
846 sites.push({
847 name: ext.name,
848 lang: normalizeLang(ext.lang ?? 'all'),
849 icon: ext.icon ?? '',
850 url: ext.website ?? '',
851 rating: 'safe',
852 contentType: ext.type ?? '',
853 isBroken: ext.brokenTag || ext.deprecatedTag ? true : undefined,
854 author: author || undefined,
855 copyUrl: ext.manifestURI
856 })
857 }
858 return sortSites(sites)
859}
860
861function isSeanimeMarketplaceList(
862 json: unknown
863): json is SeanimeMarketplaceEntry[] {
864 if (!Array.isArray(json) || json.length === 0) return false
865 const first = json[0]
866 return Boolean(
867 first && typeof first === 'object' &&
868 typeof (first as Record<string, unknown>).manifestURI === 'string'
869 )
870}
871
820872async function toRepoData(
821873 indexUrl: string,
822874 json: unknown,
@@ -836,7 +888,9 @@ async function toRepoData(
836888
837889 if (Array.isArray(json)) {
838890 const first = json[0] as Record<string, unknown> | undefined
839 if (first && 'manifestVersion' in first) {
891 if (isSeanimeMarketplaceList(json)) {
892 sites = toRepoDataSeanime(json)
893 } else if (first && 'manifestVersion' in first) {
840894 sites = toRepoDataHayase(json as HayaseExtension[])
841895 } else if (first && 'iconUrl' in first && 'site' in first) {
842896 sites = toRepoDataLNReader(json as LNReaderPlugin[])
docs/ext/extensionRepos/seanime.data.ts added +10
@@ -0,0 +1,10 @@
1import { type ExtensionRepoData, loadScheme } from './shared'
2
3export declare const data: ExtensionRepoData
4
5export default {
6 watch: ['../../**/*.md'],
7 async load(): Promise<ExtensionRepoData> {
8 return loadScheme('seanime')
9 }
10}
docs/ext/index.md +3
@@ -76,4 +76,7 @@ og:
7676 <Card title="Mangayomi" href="/ext/mangayomi">
7777 Manga, Anime & Novels
7878 </Card>
79 <Card title="Seanime" href="/ext/seanime">
80 Anime, Manga, Novels & others
81 </Card>
7982</Deck>
docs/ext/seanime.md added +38
@@ -0,0 +1,38 @@
1---
2title: Seanime Extension Repos
3customDescription: Extension Repos for Seanime
4feedback: no
5og:
6 image: /embed/extension.png
7---
8# Seanime
9
10::: extrepo {scheme=seanime, manual}
11
12== Bas1874
13- url: https://bas1874.github.io/Seanime-Marketplace/
14- src: https://github.com/Bas1874/Seanime-Marketplace
15- raw: https://raw.githubusercontent.com/Bas1874/Seanime-Marketplace/main/Marketplace/Main.json
16
17== Pal
18- url: https://seanime-contributions.github.io/Seanime-Providers/
19- src: https://github.com/Seanime-contributions/Seanime-Providers
20- raw: https://raw.githubusercontent.com/Seanime-contributions/Seanime-Providers/main/marketplace/main.json
21
22== Official
23- url: https://github.com/5rahim/seanime-extensions
24- raw: https://raw.githubusercontent.com/5rahim/seanime-extensions/main/marketplace.json
25
26== Sleepy
27- url: https://github.com/ASleepyDrink/Seanime-Stuff
28- raw: https://raw.githubusercontent.com/ASleepyDrink/Seanime-Stuff/refs/heads/main/marketplace.json
29
30== Jhoorodre
31- url: https://github.com/Jhoorodre/seanime-provider
32- raw: https://raw.githubusercontent.com/Jhoorodre/seanime-provider/master/marketplace.json
33
34== Carlos
35- url: https://github.com/Carloss616/seanime-extensions
36- raw: https://raw.githubusercontent.com/Carloss616/seanime-extensions/main/marketplace.json
37
38:::
docs/software.md +5 −3
@@ -135,6 +135,7 @@ Check out [**CFW**](https://ios.cfw.guide/), [**JCoinx**](https://jcionx.dev/ios
135135- [Hayase](https://hayase.watch/) :paid::cs::n: [:src:](https://github.com/hayase-app) [:e:](/ext/hayase)
136136- [Mangayomi](https://github.com/kodjodevf/mangayomi)
137137- [Nuvio](https://nuvio.tv/) [:src:](https://github.com/NuvioMedia) [:e:](#tab-stremio)
138- [Seanime](https://seanime.app/) [:src:](https://github.com/5rahim/seanime) [:e:](/ext/seanime)
138139
139140
140141== Manga
@@ -148,6 +149,7 @@ Check out [**CFW**](https://ios.cfw.guide/), [**JCoinx**](https://jcionx.dev/ios
148149| ^^ | [Tachimanga](https://tachimanga.app/) :fm::sub::cs: [:e:](https://tachimanga.app/help/guides/adding-repos.html) |
149150| ^^ | [AnymeX](https://anymex.vercel.app/) [:src:](https://github.com/RyanYuuki/AnymeX) [:e:](/ext/) |
150151| ^^ | [Mangayomi](https://github.com/kodjodevf/mangayomi) [:e:](/ext/mangayomi) |
152| ^^ | [Seanime](https://seanime.app/) [:src:](https://github.com/5rahim/seanime) [:e:](/ext/seanime) |
151153| **Local** | [YACReader](https://www.yacreader.com/) :s::paid::cs: [:tf:](https://testflight.apple.com/join/5zhB7sRP) |
152154| ^^ | [Panels](https://www.panels.app/) :fm::sub::cs: |
153155| ^^ | [iComics](https://apps.apple.com/app/id493845493) :paid::cs: |
@@ -193,7 +195,7 @@ Check out [**CFW**](https://ios.cfw.guide/), [**JCoinx**](https://jcionx.dev/ios
193195| [Hayase](https://hayase.watch/) [:src:](https://github.com/hayase-app) [:e:](/ext/hayase) | :win::app::lin: | :mag::material-symbols-newspaper-rounded: | :mal::al::k::simkl: |
194196| [Stremio](https://www.stremio.com/) :cs::fm::sub: [:e:](#tab-stremio) | :win::app::lin: | :mag::ddl: | :mal::al::simkl: |
195197| [Mangayomi](https://github.com/kodjodevf/mangayomi) [:e:](/ext/mangayomi) | :win::app::lin: | :mag::ddl: | :mal::al::k: |
196| [Seanime](https://seanime.app/) [:src:](https://github.com/5rahim/seanime) | :win::app::lin: | :mag::ddl: | :mal::al::k::simkl: |
198| [Seanime](https://seanime.app/) [:src:](https://github.com/5rahim/seanime) [:e:](/ext/seanime) | :win::app::lin: | :mag::ddl: | :mal::al::k::simkl: |
197199| [Unyo](https://github.com/K3vinb5/unyo-app) | :win::app::lin: | :ddl: | :al: |
198200| [AnymeX](https://anymex.vercel.app/) [:src:](https://github.com/RyanYuuki/AnymeX) [:e:](/ext/) | :win::app::lin: | :ddl: | :mal::al::simkl: |
199201
@@ -221,7 +223,7 @@ You can use [qBittorrent](https://www.qbittorrent.org/) to stream a video you're
221223| :--- | :--- | :--- | :--- |
222224| **Online** | [Mangayomi](https://github.com/kodjodevf/mangayomi) :s: | :win::app::lin: | :sp::dp::ls: |
223225| ^^ | [AnymeX](https://anymex.vercel.app/) [:src:](https://github.com/RyanYuuki/AnymeX) | :win::app::lin: | :sp::dp::ls: |
224| ^^ | [Seanime](https://seanime.app/) [:src:](https://github.com/5rahim/seanime) | :win::app::lin: | :sp::dp::ls: |
226| ^^ | [Seanime](https://seanime.app/) [:src:](https://github.com/5rahim/seanime) [:e:](/ext/seanime) | :win::app::lin: | :sp::dp::ls: |
225227| ^^ | [Manga-tui](https://github.com/josueBarretogit/manga-tui) | :app::lin::cmd: | :sp: |
226228| **Local** | [OpenComic](https://opencomic.app/) :s: [:src:](https://github.com/ollm/OpenComic) ==OpenComic== | :win::app::lin: | :sp::dp::ls: |
227229| ^^ | [YACReader](https://www.yacreader.com/) [:src:](https://github.com/YACReader/yacreader) ==YACReader== | :win::app::lin: | :sp::dp: |
@@ -371,7 +373,7 @@ You can use [qBittorrent](https://www.qbittorrent.org/) to stream a video you're
371373|----------- |----------|
372374| **Anime** | [Jellyfin](https://jellyfin.org/) :s: [:src:](https://github.com/jellyfin/jellyfin) |
373375| ^^ | [Plex](https://www.plex.tv/your-media/) :cs: |
374| ^^ | [Seanime](https://seanime.app/) [:src:](https://github.com/5rahim/seanime) |
376| ^^ | [Seanime](https://seanime.app/) [:src:](https://github.com/5rahim/seanime) [:e:](/ext/seanime) |
375377| **Manga** | [Komga](https://komga.org/) :s: [:src:](https://github.com/gotson/komga) |
376378| ^^ | [Kavita](https://www.kavitareader.com/) [:src:](https://github.com/Kareadita/Kavita) |
377379| ^^ | [LANraragi](https://sugoi.gitbook.io/lanraragi/dev) [:src:](https://github.com/Difegue/LANraragi) |