Commit 2294f2e856

2294f2e856e08b5b269083a88bb2d17f26169947

parent: 3fc57243bf

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-10-15 01:11 UTC

legado

Layout: unified · split

docs/.vitepress/theme/components/extrepo/install.ts −1
@@ -33,7 +33,6 @@ const INSTALL_URL_BUILDERS: Record<
3333 cloudstreamrepo: repo =>
3434 `cloudstreamrepo://${repo.indexUrl.replace(/^https?:\/\//, '')}`,
3535 hayase: repo => `hayase://extensions/install?url=${repo.indexUrl}`,
36 legado: repo => `legado://import/bookSource?src=${repo.indexUrl}`,
3736 lnreader: repo => `lnreader://repo/add?url=${repo.indexUrl}`
3837}
3938
docs/ext/extensionRepos/legado.data.ts deleted −10
@@ -1,10 +0,0 @@
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('legado')
9 }
10}
docs/ext/extensionRepos/parsers.ts +1 −25
@@ -118,12 +118,6 @@ interface HayaseExtension {
118118 languages?: string[]
119119}
120120
121interface LegadoBookSource {
122 bookSourceName: string
123 bookSourceUrl: string
124 bookSourceGroup?: string
125}
126
127121interface LNReaderPlugin {
128122 name: string
129123 lang: string
@@ -535,22 +529,6 @@ function toRepoDataHayase(extensions: HayaseExtension[]): RepoSite[] {
535529 return sites
536530}
537531
538function toRepoDataLegado(sources: LegadoBookSource[]): RepoSite[] {
539 const seen = new Set<string>()
540 const sites: RepoSite[] = []
541 for (const source of sources) {
542 const lang = normalizeLang(source.bookSourceGroup ?? 'all')
543 addSite(seen, `${source.bookSourceName}::${lang}`, sites, {
544 name: source.bookSourceName,
545 lang,
546 icon: '',
547 url: source.bookSourceUrl,
548 rating: 'safe'
549 })
550 }
551 return sites
552}
553
554532function toRepoDataMangayomi(sources: MangayomiSource[]): RepoSite[] {
555533 const seen = new Set<string>()
556534 const sites: RepoSite[] = []
@@ -811,9 +789,7 @@ async function toRepoData(
811789
812790 if (Array.isArray(json)) {
813791 const first = json[0] as Record<string, unknown> | undefined
814 if (first && 'bookSourceUrl' in first) {
815 sites = toRepoDataLegado(json as LegadoBookSource[])
816 } else if (first && 'manifestVersion' in first) {
792 if (first && 'manifestVersion' in first) {
817793 sites = toRepoDataHayase(json as HayaseExtension[])
818794 } else if (first && 'iconUrl' in first && 'site' in first) {
819795 sites = toRepoDataLNReader(json as LNReaderPlugin[])
docs/ext/index.md +1 −1
@@ -36,7 +36,7 @@ og:
3636- Cloudstream : (Cloudstream), (Aniyomi);
3737- Dantotsu : (Mihon), (Aniyomi), (LNreader);
3838- Futon : (Kotatsu), (Mihon);
39- IReader : (IReader), (LNreader), (Legado);
39- IReader : (IReader), (LNreader);
4040- Mangayomi : (Mihon), (Aniyomi), (Mangayomi);
4141- Tsundoku : (Mihon), (LNReader), (Tsundoku), (Shosetsu);
4242- Usagi : (Kotatsu), (Mihon), (LNreader);
docs/ext/misc.md −25
@@ -134,31 +134,6 @@ og:
134134i am so tired of this shit lol. every fork works differently. just use mihon or its forks.
135135:::
136136
137## Legado
138
139::: extrepo {scheme=legado}
140
141== rektpartyaftermath
142- url: https://github.com/rektpartyaftermath/Legado-booksource-collection
143- raw: https://raw.githubusercontent.com/rektpartyaftermath/Legado-booksource-collection/main/AllBooksource.json
144
145== ZWolken's Japanese light novels
146- url: https://github.com/ZWolken/Light-Novel-Yuedu-Source
147- raw: https://github.com/ZWolken/Light-Novel-Yuedu-Source/releases/latest/download/Japan_based_bookSource.json
148
149== ZWolken's Chinese light novels
150- url: https://github.com/ZWolken/Light-Novel-Yuedu-Source
151- raw: https://github.com/ZWolken/Light-Novel-Yuedu-Source/releases/latest/download/China_based_bookSource.json
152
153== ZWolken's Japanese raw light novels
154- url: https://github.com/ZWolken/Light-Novel-Yuedu-Source
155- raw: https://github.com/ZWolken/Light-Novel-Yuedu-Source/releases/latest/download/Japanese_original_bookSource.json
156
157== ZWolken all sources
158- url: https://github.com/ZWolken/Light-Novel-Yuedu-Source
159- raw: https://github.com/ZWolken/Light-Novel-Yuedu-Source/releases/latest/download/All_bookSource.json
160:::
161
162137## LNReader
163138
164139::: extrepo {scheme=lnreader}
docs/nonen.md −1
@@ -167,7 +167,6 @@ Most apps in [**software**](/software) supports multilingual sources
167167| ^^ | [MangaReader](https://github.com/youniaogu/MangaReader) |
168168| ^^ | [Venra](https://github.com/venera-app/venera) |
169169| **Novels** | [Hikari Novel](https://github.com/15dd/wenku8reader) |
170| ^^ | [Legado](https://github.com/gedoor/legado) |
171170| ^^ | [Legado MD3](https://github.com/HapeLee/legado-with-MD3) |
172171| ^^ | [LightNovelReader](https://github.com/dmzz-yyhyy/LightNovelReader) |
173172| **Tracker** | [Bangumi](https://github.com/czy0729/Bangumi) |